Facebook_Helpers::add_facebook_api_settings( $tabs )

Callback method to automator_settings_tabs that displays our Facebook Settings.

Contents


Return Return

(Uncanny_Automator$tabs) All existing tabs.


Source Source

File: src/integrations/facebook/helpers/facebook-helpers.php

	public function add_facebook_api_settings( $tabs ) {

		if ( $this->has_valid_license() || $this->has_connection_data() || $this->is_from_modal_action() ) {

			$tabs[ $this->setting_tab ] = array(
				'name'           => __( 'Facebook', 'uncanny-automator' ),
				'title'          => __( 'Facebook account settings', 'uncanny-automator' ),
				'description'    => $this->get_tab_content(),
				'settings_field' => 'uap_automator_facebook_api_settings',
				'wp_nonce_field' => 'uap_automator_facebook_api_nonce',
				'save_btn_name'  => 'uap_automator_facebook_api_save',
				'save_btn_title' => __( 'Save settings', 'uncanny-automator' ),
				'fields'         => array(),
			);

		}

		return $tabs;

	}