/** REMOVE REDUX MESSAGES */
function remove_redux_messages() {
if(class_exists('ReduxFramework')){
remove_action( 'admin_notices', array( get_redux_instance('YOUR_OPT_NAME'), '_admin_notices' ), 99);
}
}
/** HOOK TO REMOVE REDUX MESSAGES */
add_action('init', 'remove_redux_messages');
Replace YOUR_OPT_NAME
with your opt-name. 🙂
Hi @dovyp
Thank you, but it does not work. See my screenshot: https://cl.ly/33d97f9fa7f0
I added your code and replace with my opt-name:
/** REMOVE REDUX MESSAGES */
function remove_redux_messages() {
if(class_exists('ReduxFramework')){
remove_action( 'admin_notices', array( get_redux_instance('wpc_options'), '_admin_notices' ), 99);
}
}
/** HOOK TO REMOVE REDUX MESSAGES */
add_action('init', 'remove_redux_messages');
In version 4 this will be fixed. I’d have to dig out the code and find out why it doesn’t work again. Oy. The ad-block extension resolves this I believe.