Admin
Class to register the Knowledge Base Admin Area.
Namespace: WebberZone\Knowledge_Base\Admin
Since: 2.3.0
Source: includes/admin/class-admin.php line 26
Methods
__construct()
Main constructor class.
Since: 2.3.0
Line: 141
public function __construct( );
hooks()
Run the hooks.
Since: 2.3.0
Line: 387
public function hooks( );
register_notices()
Register admin notices.
Since: 3.0.0
Line: 402
public function register_notices( );
admin_enqueue_scripts()
Enqueue scripts in admin area.
Since: 2.3.0
Line: 458
public function admin_enqueue_scripts( );
dashboard_glance_items()
Add number of articles to At a Glance widget
Since: 2.3.0
Line: 530
public function dashboard_glance_items( $items ): array;
| Type | Name | Description |
|---|---|---|
array | $items | Array of items. |
Returns: array — Updated array of items
admin_head()
Add CSS to Admin head
Since: 2.3.0
Line: 558
public function admin_head( );
display_admin_sidebar() static
Display admin sidebar.
Since: 2.3.0
Line: 576
static public function display_admin_sidebar( );
ajax_verify_github_pat()
AJAX handler to verify a GitHub Personal Access Token.
Accepts the current field value (fresh or masked) and an optional mapping row ID. Mirrors freemkit’s connection-validate pattern: fresh token → use directly; masked → decrypt from saved settings.
Since: 3.1.0
Line: 591
public function ajax_verify_github_pat( ): void;
Returns: void
pro_upgrade_banner() static
Display Pro upgrade banner.
Since: 3.0.0
Line: 825
static public function pro_upgrade_banner( $donate = ..., $custom_text = ... );
| Type | Name | Description |
|---|---|---|
bool | $donate | Whether to show the donate banner. |
string | $custom_text | Custom text to show in the banner. |