bp_settings_remove_email_subnav()
Removes ‘Email’ sub nav, if no component has registered options there.
Description Description
Source 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 Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |