Skip to content

Instantly share code, notes, and snippets.

@danieliser
Last active November 26, 2017 06:33
Show Gist options
  • Select an option

  • Save danieliser/b553b89239cd305a1f6ca8bcfc2d77e6 to your computer and use it in GitHub Desktop.

Select an option

Save danieliser/b553b89239cd305a1f6ca8bcfc2d77e6 to your computer and use it in GitHub Desktop.
Scan popup maker content to load content dependencies
<?php
// Copy below this line to your php file.
// ----------------------------------------------------------------------------
add_action( 'popmake_preload_popup', 'pum_14_force_preload_content_scan' );
function pum_14_force_preload_content_scan( $popup_id ) {
$popup = get_post( $popup_id );
do_shortcode( $popup->post_content );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment