Recent

Custom_Tables_Admin class Pro only

Custom_Tables_Admin

Custom Tables Admin class.

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

Methods

__construct()

Constructor.

Since: 4.2.0
Line: 62

public function __construct( Sync_Manager $sync_manager, Table_Manager $table_manager );
TypeNameDescription
Sync_Manager$sync_managerSync manager instance.
Table_Manager$table_managerTable manager instance.

hooks()

Initialize hooks.

Since: 4.2.0
Line: 74

public function hooks(  );

init_admin_notices()

Initialize admin notices API.

Since: 4.2.0
Line: 121

public function init_admin_notices(  );

register_notices()

Register admin notices.

Since: 4.2.0
Line: 141

public function register_notices(  );

add_reindex_tool()

Add reindex tool.

Since: 4.2.0
Line: 236

public function add_reindex_tool(  );

handle_reindex()

Handle reindex request.

Since: 4.2.0
Line: 470

public function handle_reindex(  );

enqueue_admin_scripts()

Enqueue admin scripts.

Since: 4.2.0
Line: 506

public function enqueue_admin_scripts( $hook );
TypeNameDescription
string$hookCurrent admin page hook.

process_reindex_batch()

Process a batch of posts for reindexing.

Since: 4.2.0
Line: 551

public function process_reindex_batch(  );

get_plugin_transient()

Get plugin transient based on network context.

Since: 4.2.0
Line: 787

public function get_plugin_transient( $name ): mixed;
TypeNameDescription
string$nameTransient 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: 802

public function set_plugin_transient( $name, $value, $expiration = ... ): bool;
TypeNameDescription
string$nameTransient name.
mixed$valueTransient value.
int$expirationExpiration 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: 815

public function delete_plugin_transient( $name ): bool;
TypeNameDescription
string$nameTransient name.

Returns: bool — True if deleted, false otherwise.

get_reindex_state()

Get reindex state.

Since: 4.2.0
Line: 827

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: 838

public function update_reindex_state( $state );
TypeNameDescription
array$stateState data to update.

get_reindex_state_ajax()

Get reindex state via AJAX.

Since: 4.2.0
Line: 847

public function get_reindex_state_ajax(  );

stop_reindex()

Stop reindex process.

Since: 4.2.0
Line: 875

public function stop_reindex(  );

handle_sync_errors()

Handle sync errors during the reindex process.

Since: 4.2.0
Line: 898

public function handle_sync_errors( $errno, $errstr, $errfile, $errline ): bool;
TypeNameDescription
int$errnoError level.
string$errstrError message.
string$errfileFile where the error occurred.
int$errlineLine number where the error occurred.

Returns: bool

handle_cleanup_orphans()

Handle cleanup orphans request.

Since: 4.2.0
Line: 925

public function handle_cleanup_orphans(  );

handle_recreate_fulltext_indexes()

Handle recreate fulltext indexes request.

Since: 4.2.0
Line: 978

public function handle_recreate_fulltext_indexes(  );

handle_convert_innodb()

Handle convert to InnoDB request.

Since: 4.3.0
Line: 1015

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: 1055

public function display_crp_weight_mismatch_notice(  );

add_network_ecsi_settings()

Add network admin ECSI settings.

Since: 4.2.0
Line: 1109

public function add_network_ecsi_settings(  );

handle_network_ecsi_settings()

Handle network admin ECSI settings.

Since: 4.2.0
Line: 1154

public function handle_network_ecsi_settings(  );