Last active
November 26, 2017 06:33
-
-
Save danieliser/b553b89239cd305a1f6ca8bcfc2d77e6 to your computer and use it in GitHub Desktop.
Scan popup maker content to load content dependencies
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 | |
| // 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