mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix redux dev_mode configuration
This commit is contained in:
@@ -15,9 +15,21 @@
|
||||
}
|
||||
|
||||
add_action( 'wp_loaded', array( $this, 'initSettings' ), 10 );
|
||||
add_action( 'redux/construct', array( $this, 'redux_disable_dev_mode_plugin' ) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function redux_disable_dev_mode_plugin( $redux ) {
|
||||
if ( $redux->args['opt_name'] == 'um_options' ) {
|
||||
$redux->args['dev_mode'] = false;
|
||||
$redux->args['dev_mode_forced'] = false;
|
||||
$redux->args['update_notice'] = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function initSettings() {
|
||||
|
||||
$this->setArguments();
|
||||
|
||||
Reference in New Issue
Block a user