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.


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


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

	private function add_tab() {
		// Check if the ID is defined
		// Add it using the filter
			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;