Recent

Admin class Pro only

Admin

Class to load all the pro admin features.

Namespace: WebberZone\Knowledge_Base\Pro
Since: 3.0.0
Source: includes/class-admin.php line 22

Methods

__construct()

Constructor.

Line: 27

public function __construct(  );

register_notices()

Register pro admin notices.

Since: 3.1.0
Line: 60

public function register_notices(  ): void;

Returns: void

are_github_api_requests_blocked()

Check whether GitHub API requests are blocked by WordPress HTTP settings.

Since: 3.1.0
Line: 100

public function are_github_api_requests_blocked(  ): bool;

Returns: bool — True if GitHub API requests are blocked.

update_registered_settings()

Update the registered settings.

Since: 3.0.0
Line: 122

public function update_registered_settings( $settings ): array;
TypeNameDescription
array$settingsRegistered settings.

Returns: array — Updated registered settings.

render_pro_buttons() static

Add clear cache and flush permalinks buttons to the settings page.

Since: 3.0.0
Line: 139

static public function render_pro_buttons(  );

AJAX handler to flush permalinks.

Since: 3.0.0
Line: 156

public function flush_permalinks(  );