Custom_Tables_Admin
Custom Tables Admin class.
Namespace: WebberZone\Contextual_Related_Posts\Pro\Custom_Tables
Since: 4.0.0
Source: includes/pro/custom-tables/class-custom-tables-admin.php line 25
Methods
__construct()
Constructor.
Since: 4.0.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.0.0
Line: 75
public function hooks( );
get_plugin_transient()
Get plugin transient based on network context.
Since: 4.1.0
Line: 129
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.1.0
Line: 144
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.1.0
Line: 157
public function delete_plugin_transient( $name ): bool;
| Type | Name | Description |
|---|---|---|
string |
$name |
Transient name. |
Returns: bool — True if deleted, false otherwise.
register_notices()
Register admin notices.
Since: 4.0.0
Line: 178
public function register_notices( );
add_reindex_tool()
Add reindex tool.
Since: 4.0.0
Line: 325
public function add_reindex_tool( );
handle_reindex()
Handle reindex request.
Since: 4.0.0
Line: 591
public function handle_reindex( );
enqueue_admin_scripts()
Enqueue admin scripts.
Since: 4.0.0
Line: 627
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.0.0
Line: 680
public function process_reindex_batch( );
handle_sync_errors()
Handle sync errors during the reindex process.
Since: 4.0.0
Line: 864
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
get_reindex_state()
Get reindex state.
Since: 4.0.0
Line: 959
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: 970
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.0.0
Line: 979
public function get_reindex_state_ajax( );
stop_reindex()
Stop reindex process.
Since: 4.0.0
Line: 1000
public function stop_reindex( );
handle_cleanup_orphans()
Handle cleanup orphans request.
Since: 4.0.0
Line: 1017
public function handle_cleanup_orphans( );
handle_recreate_fulltext_indexes()
Handle recreate fulltext indexes request.
Since: 4.0.0
Line: 1069
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: 1109
public function handle_recreate_custom_tables( );
handle_convert_innodb()
Handle convert to InnoDB request.
Since: 4.2.4
Line: 1157
public function handle_convert_innodb( );
init_admin_notices()
Initialize admin notices API on admin_init.
Since: 4.0.0
Line: 1195
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: 1204
public function display_bsearch_weight_mismatch_notice( );
add_network_ecsi_settings()
Add network admin ECSI settings.
Since: 4.0.0
Line: 1258
public function add_network_ecsi_settings( );
handle_network_ecsi_settings()
Handle network ECSI settings.
Since: 4.0.0
Line: 1303
public function handle_network_ecsi_settings( );