Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jahir07/b49d941fc2da3c6a6b2c6115ca9e4813 to your computer and use it in GitHub Desktop.
Save jahir07/b49d941fc2da3c6a6b2c6115ca9e4813 to your computer and use it in GitHub Desktop.
//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