Title: Custom trigger event not working
Last modified: July 13, 2022

---

# Custom trigger event not working

 *  [Make carlos](https://wordpress.org/support/users/make-carlos/)
 * (@make-carlos)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/custom-trigger-event-not-working/)
 * Hi
 * I have set wordpress video shortcode in popup and i want to make it auto play
 *     ```
       jQuery(document).on('wppopups.popup_opened',function(e,id){	
       			if( id == '3012' ) {
       				console.log('Opened popup');
       				jQuery("div.mejs-button.mejs-playpause-button.mejs-play > button").trigger('click');
       	}
       });
       ```
   
 * Added above code but its not working properly, sometimes works only one time 
   and on second refresh page its not working anymore and sometimes its not working
   at all.
 * Thank
    Make

Viewing 1 replies (of 1 total)

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/custom-trigger-event-not-working/#post-15922153)
 * Sorry for the delay where I can see it in action?

Viewing 1 replies (of 1 total)

The topic ‘Custom trigger event not working’ is closed to new replies.

 * ![](https://ps.w.org/wp-popups-lite/assets/icon-256x256.png?rev=2202255)
 * [WP Popups - WordPress Popup builder](https://wordpress.org/plugins/wp-popups-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-popups-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-popups-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-popups-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-popups-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-popups-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/custom-trigger-event-not-working/#post-15922153)
 * Status: not resolved