BP_Admin_Integration_tab::__construct()

Description

Source

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

	public function __construct() {
		$args = func_get_args();

		if ( isset( $args[0] ) && is_string( $args[0] ) ) {
			$this->tab_name = $args[0];
		}

		if ( isset( $args[1] ) && is_string( $args[1] ) ) {
			$this->tab_label = $args[1];
		}

		if ( isset( $args[2] ) && is_array( $args[2] ) ) {
			foreach ($args[2] as $key => $value) {
				$this->$key = $value;
			}
		}

		add_action( 'bp_admin_tab_setting_save', [ $this, 'integration_setting_save'] );

		parent::__construct();
	}

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.