Created
March 6, 2017 00:55
-
-
Save waltermesser/e049774ad858415862caaa2c360ebd05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_footer', 'my_custom_popup_scripts', 500 ); | |
function my_custom_popup_scripts() { ?> | |
<script type="text/javascript"> | |
(function ($, document, undefined) { | |
jQuery('#pum-123') | |
.on('pumAfterOpen', function () { | |
setTimeout(function () { | |
jQuery(this).popmake('close'); | |
}, 10000); // 10 Seconds | |
}); | |
}(jQuery, document)) | |
</script><?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment