Admin
Class to load all the pro admin features.
Namespace: WebberZone\Contextual_Related_Posts\Pro
Source: includes/class-admin.php line 22
Methods
__construct()
Constructor.
Line: 27
public function __construct( );
handle_copy_settings()
Handle copying Contextual Related Posts settings from a source site to destination sites.
Since: 4.2.0
Line: 40
public function handle_copy_settings( );
show_settings_copied_notice()
Display a notice if settings were copied successfully.
Since: 4.2.0
Line: 93
public function show_settings_copied_notice( );
update_registered_settings()
Update the registered settings.
Since: 4.1.0
Line: 150
public function update_registered_settings( $settings ): array;
| Type | Name | Description |
|---|---|---|
array | $settings | Registered settings. |
Returns: array — Updated registered settings.
clear_cache_button() static
Add Save & Clear Cache + Clear Cache buttons to the settings page.
Since: 4.2.0
Line: 184
static public function clear_cache_button( );
add_network_copy_settings()
Add network admin copy settings tool.
Since: 4.2.0
Line: 201
public function add_network_copy_settings( );
update_meta_box()
Update the meta box.
Since: 4.1.0
Line: 274
public function update_meta_box( $post );
| Type | Name | Description |
|---|---|---|
\WP_Post | $post | Post object. |
save_meta_box()
Save the meta box.
Since: 4.1.0
Line: 293
public function save_meta_box( $post_id );
| Type | Name | Description |
|---|---|---|
int | $post_id | Post ID. |
update_recreate_indices_sql() static
Update the recreate indices SQL.
Since: 3.5.0
Line: 314
static public function update_recreate_indices_sql( $sql ): array;
| Type | Name | Description |
|---|---|---|
array | $sql | SQL to recreate indices. |
Returns: array — Updated SQL.