bp_settings_remove_email_subnav()
Removes ‘Email’ sub nav, if no component has registered options there.
Description
Source
File: bp-settings/screens/general.php
function bp_settings_remove_email_subnav() { if ( ! has_action( 'bp_notification_settings' ) ) { bp_core_remove_subnav_item( BP_SETTINGS_SLUG, 'notifications' ); } }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.