Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Disable Redux Developer Mode dev_mode
- */
- function redux_disable_dev_mode_plugin( $redux ) {
- if ( ! function_exists( 'redux_disable_dev_mode_plugin' ) ) {
- if ( $redux->args['opt_name'] != 'redux_demo' ) {
- $redux->args['dev_mode'] = false;
- $redux->args['forced_dev_mode_off'] = false;
- }
- }
- }
- add_action( 'redux/construct', 'redux_disable_dev_mode_plugin' );
- function gl_removeDemoModeLink() {
- if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
- remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks' ), null, 2 );
- }
- if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
- remove_action( 'admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) );
- }
- }
- add_action( 'init', 'gl_removeDemoModeLink' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement