Tools_Page
Tools page class.
Namespace: WebberZone\Contextual_Related_Posts\Admin
Source: includes/admin/class-tools-page.php line 23
Methods
__construct()
Constructor.
Line: 39
public function __construct( );
admin_menu()
Admin Menu.
Since: 3.5.0
Line: 53
public function admin_menu( );
render_page() static
Render the tools settings page.
Since: 3.5.0
Line: 71
static public function render_page( ): void;
Returns: void
recreate_indices_sql() static
Retrieves the SQL code to recreate the fulltext indexes.
Since: 3.5.0
Line: 268
static public function recreate_indices_sql( );
process_settings_export() static
Process a settings export that generates a .json file of the shop settings
Since: 2.9.0
Line: 309
static public function process_settings_export( );
process_settings_import() static
Process a settings import from a json file
Since: 2.9.0
Line: 341
static public function process_settings_import( );
admin_enqueue_scripts()
Enqueue scripts and styles.
Since: 3.5.0
Line: 394
public function admin_enqueue_scripts( $hook );
| Type | Name | Description |
|---|---|---|
string | $hook | The current screen hook. |
get_migration_count() static
Get the number of posts that need migration.
Since: 4.2.0
Line: 446
static public function get_migration_count( ): int;
Returns: int — Number of posts with crp_post_meta.
get_undo_count() static
Get the number of posts that can be undone.
Since: 4.2.0
Line: 458
static public function get_undo_count( ): int;
Returns: int — Number of distinct post_ids with crp keys excluding cache.
migrate_meta_batch() static
Migrate meta data from crp_post_meta array to individual crp* keys.
Since: 4.2.0
Line: 470
static public function migrate_meta_batch( );
undo_migrate_meta_batch() static
Undo migrate meta data from individual crp* keys back to crp_post_meta array.
Since: 4.2.0
Line: 504
static public function undo_migrate_meta_batch( );
rollback_meta_batch() static
Rollback meta data from individual crp* keys back to crp_post_meta array.
Since: 4.2.0
Line: 588
static public function rollback_meta_batch( );