BP_Admin::admin_menus_components()

Register main settings menu elements.

Description

Source

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

	public function admin_menus_components(){

		$hooks = array();

		$hooks[] = add_submenu_page(
			$this->settings_page,
			__( '', 'buddyboss' ),
			__( '', 'buddyboss' ),
			$this->capability,
			'bp-plugin-separator-notice',
			''
		);

		// Add the option pages.
		$hooks[] = add_submenu_page(
			$this->settings_page,
			__( 'BuddyBoss Components', 'buddyboss' ),
			__( 'Components', 'buddyboss' ),
			$this->capability,
			'bp-components',
			'bp_core_admin_components_settings'
		);

		$hooks[] = add_submenu_page(
			$this->settings_page,
			__( 'Pages', 'buddyboss' ),
			__( 'Pages', 'buddyboss' ),
			$this->capability,
			'bp-pages',
			'bp_core_admin_pages_settings'
		);

		$hooks[] = add_submenu_page(
			$this->settings_page,
			__( 'BuddyBoss Settings', 'buddyboss' ),
			__( 'Settings', 'buddyboss' ),
			$this->capability,
			'bp-settings',
			'bp_core_admin_settings'
		);

		$hooks[] = add_submenu_page(
			$this->settings_page,
			__( 'Plugin Integrations', 'buddyboss' ),
			__( 'Integrations', 'buddyboss' ),
			$this->capability,
			'bp-integrations',
			'bp_core_admin_integrations'
		);

		// Credits.
		$hooks[] = add_submenu_page(
			$this->settings_page,
			__( 'Credits', 'buddyboss' ),
			__( 'Credits', 'buddyboss' ),
			$this->capability,
			'bp-credits',
			array( $this, 'bp_credits_screen' )
		);
	}

Changelog

Changelog
Version Description
BuddyBoss 1.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.