Recent

Settingsclass

Settings

AutoClose Settings class to register the settings.

Namespace: WebberZone\AutoClose\Admin
Since: 3.0.0
Source: includes/admin/class-settings.php line 24

Methods

__construct()

Constructor.

Since: 3.0.0
Line: 63

public function __construct(  );

initialise_settings()

Initialise the Settings API and set up all properties.

Since: 3.0.0
Line: 81

public function initialise_settings(  );

get_translation_strings() static

Array containing the settings’ sections.

Since: 3.0.0
Line: 108

static public function get_translation_strings(  ): array;

Returns: array — Translation strings.

get_menus()

Get the admin menus.

Line: 138

public function get_menus(  ): array;

Returns: array — Admin menus.

get_settings_sections() static

Array containing the settings’ sections.

Since: 3.0.0
Line: 160

static public function get_settings_sections(  ): array;

Returns: array — Settings sections.

get_registered_settings() static

Retrieve the array of plugin settings.

Since: 3.0.0
Line: 183

static public function get_registered_settings(  ): array;

Returns: array — Settings array.

settings_defaults() static

Get settings defaults.

Since: 3.1.0
Line: 207

static public function settings_defaults(  ): array;

Returns: array — Default settings.

get_defaults() static

Raw default values for every setting, keyed by option ID.

Deliberately contains no translation calls, so it is safe to invoke before init. Values are pre-normalised (checkboxes as 1/0) matching what settings_defaults() produces, and the array is intentionally unfiltered since consumers apply acc_settings_defaults themselves. The revision_{$post_type} entries are generated from settings_revisions() rather than listed, since only the keys are needed and the supported post types differ per site.

Since: 3.1.3
Line: 284

static public function get_defaults(  ): array;

Returns: array — Raw default values keyed by option ID.

settings_general() static

Returns the general settings.

Since: 3.0.0
Line: 331

static public function settings_general(  ): array;

Returns: array — General settings.

settings_comments() static

Returns the comments settings.

Since: 3.0.0
Line: 413

static public function settings_comments(  ): array;

Returns: array — Comments settings.

settings_pingtracks() static

Returns the pingbacks/trackbacks settings.

Since: 3.0.0
Line: 488

static public function settings_pingtracks(  ): array;

Returns: array — Pingbacks/trackbacks settings.

settings_revisions() static

Returns the revisions settings.

Since: 3.0.0
Line: 562

static public function settings_revisions(  ): array;

Returns: array — Revisions settings.

get_upgrade_settings() static

Get the upgrade settings.

Since: 3.0.0
Line: 612

static public function get_upgrade_settings(  ): array;

Returns: array — Upgrade settings.

get_help_sidebar() static

Get the help sidebar content.

Since: 3.0.0
Line: 630

static public function get_help_sidebar(  ): string;

Returns: string — Help sidebar content.

get_help_tabs() static

Get the help tabs.

Since: 3.0.0
Line: 652

static public function get_help_tabs(  ): array;

Returns: array — Help tabs.

admin_head()

Add CSS to admin head.

Since: 3.0.0
Line: 698

public function admin_head(  );

Get the admin footer text.

Line: 732

public function get_admin_footer_text(  ): string;

Returns: string — Admin footer text.

settings_page_header() static

Add a link to the Tools page from the settings page.

Since: 3.0.0
Line: 747

static public function settings_page_header(  );

change_settings_on_save()

Change settings when saved.

Since: 3.0.0
Line: 766

public function change_settings_on_save( $settings ): array;
Type Name Description
array $settings Settings array.

Returns: array — Filtered settings array.

get_taxonomy_search_field_attributes() static

Get field attributes for Tom Select taxonomy search fields.

Since: 3.1.1
Line: 795

static public function get_taxonomy_search_field_attributes( string $taxonomy ): array;
Type Name Description
string $taxonomy Taxonomy name or ‘public_taxonomies’ to search all.

Returns: array — Field attributes array.

taxonomy_search_tom_select() static

AJAX handler for Tom Select taxonomy search.

Since: 3.1.1
Line: 809

static public function taxonomy_search_tom_select(  ): void;

Returns: void