Skip to content

Instantly share code, notes, and snippets.

@MjHead
Created March 8, 2024 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MjHead/4b99b43d304179ff23c66a5f2909c1a1 to your computer and use it in GitHub Desktop.
Save MjHead/4b99b43d304179ff23c66a5f2909c1a1 to your computer and use it in GitHub Desktop.
JetFormBuilder. Init JetPlugins scripts on Bricks AJAX Popup
<?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