Settings
Class to register the settings.
Namespace: WebberZone\Better_Search\Admin
Since: 3.3.0
Source: includes/admin/class-settings.php line 27
Methods
__construct()
Main constructor class.
Since: 3.3.0
Line: 72
public function __construct( );
initialise_settings()
Initialise the settings API.
Since: 3.3.0
Line: 91
public function initialise_settings( );
get_translation_strings()
Array containing the translation strings.
Since: 1.8.0
Line: 119
public function get_translation_strings( ): array;
Returns: array — Translation strings.
get_menus()
Get the admin menus.
Line: 148
public function get_menus( ): array;
Returns: array — Admin menus.
get_settings_sections() static
Array containing the settings’ sections.
Since: 3.3.0
Line: 171
static public function get_settings_sections( ): array;
Returns: array — Settings array
get_registered_settings() static
Retrieve the array of plugin settings
Since: 3.3.0
Line: 198
static public function get_registered_settings( ): array;
Returns: array — Settings array
settings_general() static
Retrieve the array of General settings
Since: 3.3.0
Line: 226
static public function settings_general( ): array;
Returns: array — General settings array
settings_performance() static
Retrieve the array of Performance settings
Since: 4.2.0
Line: 311
static public function settings_performance( ): array;
Returns: array — Performance settings array
settings_search() static
Retrieve the array of Search settings
Since: 3.3.0
Line: 391
static public function settings_search( ): array;
Returns: array — Search settings array
settings_heatmap() static
Retrieve the array of Heatmap settings
Since: 3.3.0
Line: 692
static public function settings_heatmap( ): array;
Returns: array — Heatmap settings array
settings_output() static
Retrieve the array of Output settings
Since: 3.3.0
Line: 819
static public function settings_output( ): array;
Returns: array — Output settings array
get_badwords() static
Get badwords to filter.
Since: 2.2.0
Line: 933
static public function get_badwords( ): array;
Returns: array — Array containing bad words to filter
plugin_actions_links()
Adding WordPress plugin action links.
Since: 3.3.0
Line: 1027
public function plugin_actions_links( $links ): array;
| Type | Name | Description |
|---|---|---|
array | $links | Array of links. |
Returns: array
plugin_row_meta()
Add meta links on Plugins page.
Since: 3.3.0
Line: 1046
public function plugin_row_meta( $links, $file ): array;
| Type | Name | Description |
|---|---|---|
array | $links | Array of Links. |
string | $file | Current file. |
Returns: array
get_help_sidebar()
Get the help sidebar content to display on the plugin settings page.
Since: 1.8.0
Line: 1065
public function get_help_sidebar( );
get_help_tabs()
Get the help tabs to display on the plugin settings page.
Since: 3.3.0
Line: 1093
public function get_help_tabs( );
get_admin_footer_text() static
Add footer text on the plugin page.
Since: 2.0.0
Line: 1141
static public function get_admin_footer_text( );
admin_enqueue_scripts()
Enqueue scripts and styles.
Since: 4.0.0
Line: 1158
public function admin_enqueue_scripts( $hook );
| Type | Name | Description |
|---|---|---|
string | $hook | Current hook. |
change_settings_on_save()
Modify settings when they are being saved.
Since: 3.3.0
Line: 1191
public function change_settings_on_save( $settings ): array;
| Type | Name | Description |
|---|---|---|
array | $settings | Settings array. |
Returns: array — Sanitized settings array.
after_setting_output() static
Updated the settings fields to display a pro version link.
Line: 1209
static public function after_setting_output( $output, $args ): string;
| Type | Name | Description |
|---|---|---|
string | $output | Settings field HTML. |
array | $args | Settings field arguments. |
Returns: string — Updated HTML.
add_wizard_button()
Add a button to the settings page to start the settings wizard.
Since: 4.2.0
Line: 1227
public function add_wizard_button( );
taxonomy_search_tom_select() static
AJAX handler for Tom Select taxonomy search.
Since: 4.2.0
Line: 1244
static public function taxonomy_search_tom_select( ): void;
Returns: void