BP_Messages_Notices_Admin::admin_menu()
Add the ‘Site Notices’ admin menu item.
Description
Source
File: bp-messages/classes/class-bp-messages-notices-admin.php
public function admin_menu() { // Bail if current user cannot moderate community. if ( ! bp_current_user_can( 'bp_moderate' ) || ! bp_is_active( 'messages' ) ) { return false; } $this->screen_id = add_submenu_page( 'buddyboss-platform', __( 'Notices', 'buddyboss' ), __( 'Notices', 'buddyboss' ), 'manage_options', 'bp-notices', array( $this, 'admin_index' ) ); add_action( 'load-' . $this->screen_id, array( $this, 'admin_load' ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.