BP_Admin_Tab::__construct()

Description

Source

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

	public function __construct() {
		$this->initialize();
		$this->register_tab();
		$this->register_hook();

		if ( $this->is_active() ) {
			$this->register_fields();
			do_action( 'bp_admin_tab_fields_registered', $this->tab_name, $this );
			add_action( 'bp_admin_init', [$this, 'maybe_save_admin_settings'], 100 );
		}
	}

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.