PHP Class EP_Dashboard

Sets up the dashboard page to handle ElasticPress configuration.
Mostrar archivo Open project: 10up/elasticpress Class Usage Examples

Public Methods

Method Description
__construct ( ) Placeholder
action_admin_enqueue_scripts ( ) : void Register and Enqueue JavaScripts
action_admin_init ( ) : void Admin-init actions
action_admin_menu ( ) : void Admin menu actions
action_bad_host_notice ( ) Print out mid sync warning notice
action_mid_index_notice ( ) Print out mid sync warning notice
action_wp_ajax_ep_cancel_index ( ) Cancel index
action_wp_ajax_ep_index ( ) Continue index
action_wp_ajax_ep_toggle_module ( ) Toggle module active or inactive
dashboard_page ( ) Build dashboard page
factory ( ) : object Return a singleton instance of the current class
filter_plugin_action_links ( array $plugin_actions, string $plugin_file ) : array Output dashboard link in plugin actions
intro_or_dashboard ( ) Conditionally show dashboard or intro
intro_page ( ) Build settings page
settings_page ( ) Build settings page
setup ( ) Setup actions and filters for all things settings

Method Details

__construct() public method

Placeholder
Since: 1.9
public __construct ( )

action_admin_enqueue_scripts() public method

Registers and enqueues the necessary JavaScripts for the interface.
Since: 1.9
public action_admin_enqueue_scripts ( ) : void
return void

action_admin_init() public method

Sets up Settings API.
Since: 1.9
public action_admin_init ( ) : void
return void

action_admin_menu() public method

Adds options page to admin menu.
Since: 1.9
public action_admin_menu ( ) : void
return void

action_bad_host_notice() public method

Print out mid sync warning notice
Since: 2.1

action_mid_index_notice() public method

Print out mid sync warning notice
Since: 2.1

action_wp_ajax_ep_cancel_index() public method

Cancel index
Since: 2.1

action_wp_ajax_ep_index() public method

Continue index
Since: 2.1

action_wp_ajax_ep_toggle_module() public method

Toggle module active or inactive
Since: 2.1

dashboard_page() public method

Build dashboard page
Since: 2.1
public dashboard_page ( )

factory() public static method

Return a singleton instance of the current class
Since: 2.1
public static factory ( ) : object
return object

intro_or_dashboard() public method

Conditionally show dashboard or intro
Since: 2.1
public intro_or_dashboard ( )

intro_page() public method

Build settings page
Since: 2.1
public intro_page ( )

settings_page() public method

Build settings page
Since: 2.1
public settings_page ( )

setup() public method

Setup actions and filters for all things settings
Since: 2.1
public setup ( )