bp_email customize and bbpress notice
-
To get rid of the bbpress notice that appears at the top of the wp-admin screen for
Emails > Customize
, paste this in yourtheme/functions.php
or in plugins/bp-custom.phpfunction pp_remove_bbpress_notice() { if ( isset( $_REQUEST['wp_customize'] ) ) { if ( class_exists( 'bbPress' ) ) { remove_action( 'set_current_user', 'bbp_setup_current_user', 10 ); add_action( 'set_current_user', 'pp_bbp_setup_current_user', 10 ); } } } add_action( 'plugins_loaded', 'pp_remove_bbpress_notice' ); function pp_bbp_setup_current_user() { if ( class_exists( 'bbPress' ) ) bbp_set_current_user_default_role(); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘bp_email customize and bbpress notice’ is closed to new replies.