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 | |
/** | |
* Template for displaying single course | |
* | |
* @since v.1.0.0 | |
* | |
* @author Themeum | |
* @url https://themeum.com | |
* | |
* @package TutorLMS/Templates |
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
//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' ); |