Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Premium_Integrations::add_tab()

Adds the tab and the function that outputs the content to the Settings page


Source

File: src/core/lib/settings/trait-premium-integrations.php

	private function add_tab() {
		// Check if the ID is defined
		// Add it using the filter
		add_filter(
			'automator_settings_premium_integrations_tabs',
			function ( $tabs ) {

				// Create the tab
				$tabs[ $this->get_id() ] = (object) array(
					'name'     => $this->get_name(),
					'icon'     => $this->get_icon(),
					'status'   => $this->get_status(),
					'preload'  => $this->get_preload(),
					'function' => array( $this, 'output' ),
				);

				return $tabs;
			}
		);
	}