[Plugin: Buddypress] How to Remove Register and Activate page message
-
“The following active BuddyPress Components do not have associated WordPress Pages: Register and Activate”
I would like to remove this message from appearing at the top of my backend. My theme has its own registration process and I do not need Buddypress Registration and Activation pages. What kind of PHP coding can I do to remove this message?
Here is the code:
if ( !empty( $orphaned_components ) ) { $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ); $notice = sprintf( __( 'The following active BuddyPress Components do not have associated WordPress Pages: %2$s. <a href="%1$s">Repair</a>', 'buddypress' ), esc_url( $admin_url ), '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>' ); bp_core_add_admin_notice( $notice ); }
Would a
remove_action
work in this case? Something likeremove_action( 'bp_core_add_admin_notice( $notice );' );
Not so great with PHP work. Any help would be really incredible! Thank you in advance.
- The topic ‘[Plugin: Buddypress] How to Remove Register and Activate page message’ is closed to new replies.