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: 101
public function render_page( ): void;
Returns: void
get_db_status_report() static
Report database table and index status without changing the schema.
Since: 4.5.0
Line: 390
static public function get_db_status_report( ): string;
Returns: string — Status table HTML.
trunc_count() static
Function to clean the database.
Since: 3.3.0
Line: 445
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: 458
static public function recreate_indices_sql( );
recreate_index() static
Recreate FULLTEXT indices.
Since: 3.3.0
Line: 497
static public function recreate_index( );
restore_backup_tables() static
Restore tables from backup.
Since: 3.3.0
Line: 531
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: 564
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: 576
static public function process_settings_export( );
process_settings_import() static
Process a settings import from a json file
Since: 3.3.0
Line: 608
static public function process_settings_import( );
help_tabs() static
Generates the Tools help page.
Since: 3.3.0
Line: 657
static public function help_tabs( );