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.
settings_general() static
Returns the general settings.
Since: 3.0.0
Line: 276
static public function settings_general( ): array;
Returns: array — General settings.
settings_comments() static
Returns the comments settings.
Since: 3.0.0
Line: 357
static public function settings_comments( ): array;
Returns: array — Comments settings.
settings_pingtracks() static
Returns the pingbacks/trackbacks settings.
Since: 3.0.0
Line: 431
static public function settings_pingtracks( ): array;
Returns: array — Pingbacks/trackbacks settings.
settings_revisions() static
Returns the revisions settings.
Since: 3.0.0
Line: 504
static public function settings_revisions( ): array;
Returns: array — Revisions settings.
get_upgrade_settings() static
Get the upgrade settings.
Since: 3.0.0
Line: 553
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: 571
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: 593
static public function get_help_tabs( ): array;
Returns: array — Help tabs.
admin_head()
Add CSS to admin head.
Since: 3.0.0
Line: 639
public function admin_head( );
get_admin_footer_text()
Get the admin footer text.
Line: 673
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: 688
static public function settings_page_header( );
change_settings_on_save()
Change settings when saved.
Since: 3.0.0
Line: 707
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: 736
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: 750
static public function taxonomy_search_tom_select( ): void;
Returns: void