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 | |
/*** | |
* Load one of these functions in your (child)theme's functions.php | |
* Which depends on your needs | |
* use _bodyclass() to remove classes added/loaded via the WP body_class() function | |
* use _jquery() to remove classes that are not added/loaded via the WP body_class() function with jQuery | |
* use _javascript() to remove classes that are not added/loaded via the WP body_class() function with a JavaScript only solution | |
* Need help? => CodeByCurtis.com | |
**/ |
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 | |
/*** | |
* Load one of these functions at the top of you plug-in's main .php file | |
* Which depends on your needs | |
* _first() will load it first; _last() will load it last | |
* Need help? => CodeByCurtis.com | |
**/ | |
/** | |
* position a plugin to load first or last depending on push or unshift |
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 | |
/*** | |
* Load this in your (child)theme's functions.php | |
* Need help? => CodeByCurtis.com | |
**/ | |
// order plugins that are causing issues | |
function cbc_order_plugins() { | |
$active_plugins = get_option('active_plugins'); | |