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.

Admin_Settings_General_Logs::create_tab()

Adds the tab using the automator_settings_tab filter


Source Source

File: src/core/admin/admin-settings/tabs/general-tabs/logs.php

	private function create_tab() {
		// Add the tab using the filter
		add_filter(
			'automator_settings_general_tabs',
			function( $tabs ) {
				// General
				$tabs['logs'] = (object) array(
					'name'     => esc_html__( 'Logs', 'uncanny-automator' ),
					'function' => array( $this, 'tab_output' ),
					'preload'  => true, // Determines if the content should be loaded even if the tab is not selected
					'icon'     => 'th-list',
				);

				return $tabs;
			},
			10,
			1
		);
	}