Admin_Settings_General::tab_output()
Outputs the content of the “General” tab
Source Source
File: src/core/admin/admin-settings/tabs/general.php
public function tab_output() { // Get the tabs $general_tabs = $this->get_general_tabs(); // Get the current tab $current_general_tab = automator_filter_has_var( 'general' ) ? sanitize_text_field( automator_filter_input( 'general' ) ) : 'license'; // Check if the user is requesting the focus version $layout_version = automator_filter_has_var( 'automator_hide_settings_tabs' ) ? 'focus' : 'default'; // Add the actions and get the selected tab foreach ( $general_tabs as $tab_key => $tab ) { // Check if the function is defined if ( isset( $tab->function ) ) { // Add action add_action( 'automator_settings_general_' . $tab_key . '_tab', $tab->function ); } // Check if this is the selected tab $tab->is_selected = $tab_key === $current_general_tab; } // Load the view include Utilities::automator_get_view( 'admin-settings/tab/general.php' ); }
Expand full source code Collapse full source code View on Github