Skip to content

Instantly share code, notes, and snippets.

@manchumahara
Created December 14, 2016 09:55
Show Gist options
  • Save manchumahara/14a579844e28ede22b2a4a7c9e2e229f to your computer and use it in GitHub Desktop.
Save manchumahara/14a579844e28ede22b2a4a7c9e2e229f 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