Tools_Page
Generates the Tools page.
Namespace: WebberZone\Better_Search\Admin
Since: 3.3.0
Source: includes/admin/class-tools-page.php line 24
Methods
__construct()
Constructor class.
Since: 3.3.0
Line: 40
public function __construct( );
admin_menu()
Admin Menu.
Since: 3.3.0
Line: 52
public function admin_menu( );
admin_enqueue_scripts()
Enqueue scripts in admin area.
Since: 3.3.0
Line: 73
public function admin_enqueue_scripts( $hook );
| Type | Name | Description |
|---|---|---|
string | $hook | The current admin page. |
render_page()
Render the tools settings page.
Since: 3.3.0
Line: 100
public function render_page( ): void;
Returns: void
trunc_count() static
Function to clean the database.
Since: 3.3.0
Line: 375
static public function trunc_count( $daily = ... );
| Type | Name | Description |
|---|---|---|
bool | $daily | TRUE = Daily tables, FALSE = Overall tables. |
recreate_indices_sql() static
Retrieves the SQL code to recreate the fulltext indexes.
Since: 4.2.0
Line: 388
static public function recreate_indices_sql( );
recreate_index() static
Recreate FULLTEXT indices.
Since: 3.3.0
Line: 419
static public function recreate_index( );
restore_backup_tables() static
Restore tables from backup.
Since: 3.3.0
Line: 445
static public function restore_backup_tables( $daily = ... ): bool;
| Type | Name | Description |
|---|---|---|
bool | $daily | TRUE = Daily tables, FALSE = Overall tables. |
Returns: bool — True if backup tables exist, false otherwise.
delete_backup_tables() static
Delete Better Search backup tables.
Since: 3.3.0
Line: 476
static public function delete_backup_tables( );
process_settings_export() static
Process a settings export that generates a .json file of the shop settings
Since: 3.3.0
Line: 488
static public function process_settings_export( );
process_settings_import() static
Process a settings import from a json file
Since: 3.3.0
Line: 520
static public function process_settings_import( );
help_tabs() static
Generates the Tools help page.
Since: 3.3.0
Line: 569
static public function help_tabs( );