Created
March 8, 2024 15:56
-
-
Save MjHead/4b99b43d304179ff23c66a5f2909c1a1 to your computer and use it in GitHub Desktop.
JetFormBuilder. Init JetPlugins scripts on Bricks AJAX Popup
This file contains hidden or 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', function() { | |
?> | |
<script type="text/javascript"> | |
document.addEventListener( 'bricks/ajax/popup/loaded', (event) => { | |
window.JetPlugins.init( jQuery( event.detail.popupElement ) ) | |
}); | |
</script> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment