BP_Admin::emails_admin_menu_order( array $custom_menus = array() )

Add Emails menu item to custom menus array.


Description Description

Several BuddyPress components have top-level menu items in the Dashboard, which all appear together in the middle of the Dashboard menu. This function adds the Emails screen to the array of these menu items.


Parameters Parameters

$custom_menus

(Optional) The list of top-level BP menu items.

Default value: array()


Top ↑

Return Return

(array) $custom_menus List of top-level BP menu items, with Emails added.


Top ↑

Source Source

File: bp-core/classes/class-bp-admin.php

	public function emails_admin_menu_order( $custom_menus = array() ) {
		array_push( $custom_menus, 'edit.php?post_type=' . bp_get_email_post_type() );

		if ( is_network_admin() && bp_is_network_activated() ) {
			array_push(
				$custom_menus,
				get_admin_url( bp_get_root_blog_id(), 'edit.php?post_type=' . bp_get_email_post_type() )
			);
		}

		return $custom_menus;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.