Forked from RafaelFunchal/MailPoet: Conditional to stop loading files in MailPoet pages
Last active
August 29, 2015 14:24
-
-
Save vvaz/69af2589d25387a6afe1 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 | |
/** | |
* If your theme or plugin is inserting files in MailPoet pages | |
* and it is breaking some functions, you should apply this | |
* conditional to load your files. | |
* | |
* Normally themes use these functions wp_enqueue_style() and wp_enqueue_script() | |
*/ | |
if ( ( isset($_GET['page']) && $_GET['page'] != 'wysija_campaigns' ) && ( isset($_GET['page']) && $_GET['page'] != 'wysija_subscribers' ) && ( isset($_GET['page']) && $_GET['page'] != 'wysija_statistics' ) && ( isset($_GET['page']) && $_GET['page'] != 'wysija_config' ) ) { | |
// Put your enqueue styles and scripts here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment