Recent

Custom_Tables_AdminclassPro only

Custom_Tables_Admin

Custom Tables Admin class.

Namespace: WebberZone\Better_Search\Pro\Custom_Tables
Since: 4.2.0
Source: includes/pro/custom-tables/class-custom-tables-admin.php line 26

Methods

__construct()

Constructor.

Since: 4.2.0
Line: 63

public function __construct( Sync_Manager $sync_manager, Table_Manager $table_manager );
Type Name Description
Sync_Manager $sync_manager Sync manager instance.
Table_Manager $table_manager Table manager instance.

hooks()

Initialize hooks.

Since: 4.2.0
Line: 75

public function hooks(  );

init_admin_notices()

Initialize admin notices API.

Since: 4.2.0
Line: 126

public function init_admin_notices(  );

register_notices()

Register admin notices.

Since: 4.2.0
Line: 146

public function register_notices(  );

add_reindex_tool()

Add reindex tool.

Since: 4.2.0
Line: 241

public function add_reindex_tool(  );

handle_reindex()

Handle reindex request.

Since: 4.2.0
Line: 475

public function handle_reindex(  );

enqueue_admin_scripts()

Enqueue admin scripts.

Since: 4.2.0
Line: 511

public function enqueue_admin_scripts( $hook );
Type Name Description
string $hook Current admin page hook.

process_reindex_batch()

Process a batch of posts for reindexing.

Since: 4.2.0
Line: 556

public function process_reindex_batch(  );

get_plugin_transient()

Get plugin transient based on network context.

Since: 4.2.0
Line: 792

public function get_plugin_transient( $name ): mixed;
Type Name Description
string $name Transient name.

Returns: mixed — Transient value or false if not set.

set_plugin_transient()

Set plugin transient based on network context.

Since: 4.2.0
Line: 807

public function set_plugin_transient( $name, $value, $expiration = ... ): bool;
Type Name Description
string $name Transient name.
mixed $value Transient value.
int $expiration Expiration time in seconds.

Returns: bool — True if set, false otherwise.

delete_plugin_transient()

Delete plugin transient based on network context.

Since: 4.2.0
Line: 820

public function delete_plugin_transient( $name ): bool;
Type Name Description
string $name Transient name.

Returns: bool — True if deleted, false otherwise.

get_reindex_state()

Get reindex state.

Since: 4.2.0
Line: 832

public function get_reindex_state(  ): array|false;

Returns: array|false — Reindex state or false if not reindexing.

update_reindex_state()

Update reindex state.

Since: 4.2.0
Line: 843

public function update_reindex_state( $state );
Type Name Description
array $state State data to update.

get_reindex_state_ajax()

Get reindex state via AJAX.

Since: 4.2.0
Line: 852

public function get_reindex_state_ajax(  );

stop_reindex()

Stop reindex process.

Since: 4.2.0
Line: 880

public function stop_reindex(  );

handle_sync_errors()

Handle sync errors during the reindex process.

Since: 4.2.0
Line: 903

public function handle_sync_errors( $errno, $errstr, $errfile, $errline ): bool;
Type Name Description
int $errno Error level.
string $errstr Error message.
string $errfile File where the error occurred.
int $errline Line number where the error occurred.

Returns: bool

handle_cleanup_orphans()

Handle cleanup orphans request.

Since: 4.2.0
Line: 930

public function handle_cleanup_orphans(  );

handle_recreate_fulltext_indexes()

Handle recreate fulltext indexes request.

Since: 4.2.0
Line: 983

public function handle_recreate_fulltext_indexes(  );

handle_convert_innodb()

Handle convert to InnoDB request.

Since: 4.3.0
Line: 1020

public function handle_convert_innodb(  );

display_crp_weight_mismatch_notice()

Display notification if Contextual Related Posts Pro is active and Tag settings are different from Better Search.

Since: 4.2.0
Line: 1060

public function display_crp_weight_mismatch_notice(  );

add_network_ecsi_settings()

Add network admin ECSI settings.

Since: 4.2.0
Line: 1114

public function add_network_ecsi_settings(  );

handle_network_ecsi_settings()

Handle network admin ECSI settings.

Since: 4.2.0
Line: 1159

public function handle_network_ecsi_settings(  );