Recent

Custom_Tables_Admin class Pro only

Custom_Tables_Admin

Custom Tables Admin class.

Namespace: WebberZone\Contextual_Related_Posts\Pro\Custom_Tables
Since: 4.0.0
Source: includes/custom-tables/class-custom-tables-admin.php line 24

Methods

__construct()

Constructor.

Since: 4.0.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.0.0
Line: 74

public function hooks(  );

get_plugin_transient()

Get plugin transient based on network context.

Since: 4.1.0
Line: 128

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.1.0
Line: 143

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.1.0
Line: 156

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

Returns: bool — True if deleted, false otherwise.

register_notices()

Register admin notices.

Since: 4.0.0
Line: 177

public function register_notices(  );

add_reindex_tool()

Add reindex tool.

Since: 4.0.0
Line: 309

public function add_reindex_tool(  );

handle_reindex()

Handle reindex request.

Since: 4.0.0
Line: 575

public function handle_reindex(  );

enqueue_admin_scripts()

Enqueue admin scripts.

Since: 4.0.0
Line: 611

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

process_reindex_batch()

Process a batch of posts for reindexing.

Since: 4.0.0
Line: 664

public function process_reindex_batch(  );

handle_sync_errors()

Handle sync errors during the reindex process.

Since: 4.0.0
Line: 837

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

get_reindex_state()

Get reindex state.

Since: 4.0.0
Line: 932

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.0.0
Line: 943

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

get_reindex_state_ajax()

Get reindex state via AJAX.

Since: 4.0.0
Line: 952

public function get_reindex_state_ajax(  );

stop_reindex()

Stop reindex process.

Since: 4.0.0
Line: 973

public function stop_reindex(  );

handle_cleanup_orphans()

Handle cleanup orphans request.

Since: 4.0.0
Line: 990

public function handle_cleanup_orphans(  );

handle_recreate_fulltext_indexes()

Handle recreate fulltext indexes request.

Since: 4.0.0
Line: 1042

public function handle_recreate_fulltext_indexes(  );

handle_recreate_custom_tables()

Handle recreate custom tables request.

Drops the existing table and recreates it from scratch. All indexed data is lost; the user must reindex content afterwards.

Since: 4.2.4
Line: 1082

public function handle_recreate_custom_tables(  );

handle_convert_innodb()

Handle convert to InnoDB request.

Since: 4.2.4
Line: 1130

public function handle_convert_innodb(  );

init_admin_notices()

Initialize admin notices API on admin_init.

Since: 4.0.0
Line: 1168

public function init_admin_notices(  );

display_bsearch_weight_mismatch_notice()

Display notification if Better Search Pro is active and Tag settings are different from CRP.

Since: 4.0.0
Line: 1177

public function display_bsearch_weight_mismatch_notice(  );

add_network_ecsi_settings()

Add network admin ECSI settings.

Since: 4.0.0
Line: 1231

public function add_network_ecsi_settings(  );

handle_network_ecsi_settings()

Handle network ECSI settings.

Since: 4.0.0
Line: 1276

public function handle_network_ecsi_settings(  );