Admin
Class to load all the pro admin features.
Namespace: WebberZone\Better_Search\Pro
Source: includes/class-admin.php line 23
Methods
__construct()
Constructor.
Line: 28
public function __construct( );
update_registered_settings()
Update the registered settings.
Since: 4.0.0
Line: 67
public function update_registered_settings( $settings ): array;
| Type | Name | Description |
|---|---|---|
array | $settings | Registered settings. |
Returns: array — Updated registered settings.
clear_cache_button() static
Add clear cache button to the settings page.
Since: 4.0.0
Line: 92
static public function clear_cache_button( );
after_setting_output() static
Updated the settings fields to display a button for creating indexes.
Since: 4.0.0
Line: 108
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.
create_fulltext_indexes()
Create the fulltext indexes.
Since: 4.0.0
Line: 182
public function create_fulltext_indexes( );
create_fuzzy_functions()
Create the Levenshtein function in the database.
Since: 4.0.0
Line: 199
public function create_fuzzy_functions( );
get_fulltext_index_status() static
Get the fulltext index status.
Since: 4.0.0
Line: 217
static public function get_fulltext_index_status( ): string;
Returns: string — Fulltext index status.
add_selected_day_tab()
Add “Selected Day” tab to the dashboard tabs.
Since: 4.3.0
Line: 242
public function add_selected_day_tab( $tabs ): array;
| Type | Name | Description |
|---|---|---|
array | $tabs | Array of dashboard tabs. |
Returns: array — Modified array of dashboard tabs.
enqueue_index_creator_script()
Enqueue index creator JavaScript.
Since: 4.3.1
Line: 266
public function enqueue_index_creator_script( $hook ): void;
| Type | Name | Description |
|---|---|---|
string | $hook | The current admin page. |
Returns: void
enqueue_chart_interactions_script()
Enqueue chart interactions JavaScript.
Since: 4.3.0
Line: 302
public function enqueue_chart_interactions_script( $hook ): void;
| Type | Name | Description |
|---|---|---|
string | $hook | The current admin page. |
Returns: void
get_day_searches()
Get day searches via AJAX.
Since: 4.3.0
Line: 335
public function get_day_searches( );