Created
December 14, 2016 09:55
-
-
Save manchumahara/14a579844e28ede22b2a4a7c9e2e229f to your computer and use it in GitHub Desktop.
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
//disable redux dev mode | |
if ( ! function_exists( 'wppoliticalz_redux_disable_dev_mode_plugin' ) ) { | |
function wppoliticalz_redux_disable_dev_mode_plugin( $redux ) { | |
if ( $redux->args['opt_name'] != 'redux_demo' ) { | |
$redux->args['dev_mode'] = false; //helps to disable dev mode but in localhost ad still appear | |
$redux->args['forced_dev_mode_off'] = false; //helps to disable ad totally | |
} | |
} | |
add_action( 'redux/construct', 'wppoliticalz_redux_disable_dev_mode_plugin' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment