Recent

AdminclassPro only

Admin

Class to load all the pro admin features.

Namespace: WebberZone\Contextual_Related_Posts\Pro
Source: includes/pro/class-admin.php line 23

Methods

__construct()

Constructor.

Line: 28

public function __construct(  );

handle_copy_settings()

Handle copying Contextual Related Posts settings from a source site to destination sites.

Since: 4.2.0
Line: 41

public function handle_copy_settings(  );

show_settings_copied_notice()

Display a notice if settings were copied successfully.

Since: 4.2.0
Line: 94

public function show_settings_copied_notice(  );

update_registered_settings()

Update the registered settings.

Since: 4.1.0
Line: 149

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

static public function clear_cache_button(  );

add_network_copy_settings()

Add network admin copy settings tool.

Since: 4.2.0
Line: 200

public function add_network_copy_settings(  );

update_meta_box()

Update the meta box.

Since: 4.1.0
Line: 273

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

public function save_meta_box( $post_id );
Type Name Description
int $post_id Post ID.