Recent

Settings class

Settings

Class to register the settings.

Namespace: WebberZone\WFP\Admin
Since: 3.1.0
Source: includes/admin/class-settings.php line 29

Methods

__construct()

Main constructor class.

Since: 3.1.0
Line: 145

public function __construct(  );

add_wizard_button()

Add a button to the settings page to start the settings wizard.

Since: 3.2.0
Line: 169

public function add_wizard_button(  );

initialise_settings()

Initialise the settings API.

Since: 3.1.0
Line: 184

public function initialise_settings(  );

get_translation_strings()

Array containing the settings’ sections.

Since: 3.0.0
Line: 211

public function get_translation_strings(  ): array;

Returns: array — Settings array

get_menus()

Get the admin menus.

Line: 237

public function get_menus(  ): array;

Returns: array — Admin menus.

get_settings_sections() static

Array containing the settings’ sections.

Since: 3.1.0
Line: 260

static public function get_settings_sections(  ): array;

Returns: array — Settings array

get_registered_settings() static

Retrieve the array of plugin settings

Since: 3.1.0
Line: 287

static public function get_registered_settings(  ): array;

Returns: array — Settings array

settings_defaults() static

Get settings defaults.

Since: 3.2.0
Line: 315

static public function settings_defaults(  ): array;

Returns: array — Default settings.

settings_general() static

Returns the General settings.

Since: 3.0.0
Line: 374

static public function settings_general(  ): array;

Returns: array — Header settings.

settings_output() static

Returns the Output settings.

Since: 3.0.0
Line: 524

static public function settings_output(  ): array;

Returns: array — Output settings.

settings_thumbnail() static

Returns the Thumbnail settings.

Since: 3.0.0
Line: 664

static public function settings_thumbnail(  ): array;

Returns: array — Thumbnail settings.

settings_styles() static

Returns the Styles settings.

Since: 3.0.0
Line: 765

static public function settings_styles(  ): array;

Returns: array — Styles settings.

settings_feed() static

Returns the Feed settings.

Since: 3.0.0
Line: 803

static public function settings_feed(  ): array;

Returns: array — Feed settings.

get_styles() static

Get the various styles.

Since: 3.0.0
Line: 873

static public function get_styles(  ): array;

Returns: array — Style options.

Adding WordPress plugin action links.

Since: 3.1.0
Line: 916

public function plugin_actions_links( $links ): array;
TypeNameDescription
array$linksArray of links.

Returns: array

plugin_row_meta()

Add meta links on Plugins page.

Since: 3.1.0
Line: 935

public function plugin_row_meta( $links, $file ): array;
TypeNameDescription
array$linksArray of Links.
string$fileCurrent file.

Returns: array

get_help_sidebar()

Get the help sidebar content to display on the plugin settings page.

Since: 3.0.0
Line: 954

public function get_help_sidebar(  );

get_help_tabs()

Get the help tabs to display on the plugin settings page.

Since: 3.1.0
Line: 982

public function get_help_tabs(  );

Add footer text on the plugin page.

Since: 2.0.0
Line: 1036

static public function get_admin_footer_text(  );

admin_enqueue_scripts()

Enqueue scripts and styles.

Since: 3.1.0
Line: 1051

public function admin_enqueue_scripts(  );

change_settings_on_save()

Modify settings when they are being saved.

Since: 2.3.0
Line: 1082

public function change_settings_on_save( $settings ): array;
TypeNameDescription
array$settingsSettings array.

Returns: array — $settings Sanitized settings array.

taxonomy_search_tom_select() static

Handle Tom Select taxonomy search AJAX requests.

Since: 3.2.0
Line: 1112

static public function taxonomy_search_tom_select(  ): void;

Returns: void

display_admin_thumbnail()

Display the default thumbnail below the setting.

Since: 3.0.0
Line: 1279

public function display_admin_thumbnail( $html, $args ): string;
TypeNameDescription
string$htmlCurrent HTML.
array$argsArgument array of the setting.

Returns: string

reset_default_thumb_setting()

Display the default thumbnail below the setting.

Since: 3.0.0
Line: 1300

public function reset_default_thumb_setting( $html, $args ): string;
TypeNameDescription
string$htmlCurrent HTML.
array$argsArgument array of the setting.

Returns: string

cache_button() static

Adds a clear cache button to the settings screen.

Since: 3.0.0
Line: 1315

static public function cache_button(  );