Recent

Article_CreatorclassPro only

Article_Creator

Shared operation for creating draft Knowledge Base articles.

Namespace: WebberZone\Knowledge_Base\Pro
Since: 3.2.0
Source: includes/pro/class-article-creator.php line 19

Methods

can_create() static

Check whether the current user can create Knowledge Base articles.

Since: 3.2.0
Line: 29

static public function can_create( $input = ... ): bool;
Type Name Description
mixed $input Ability input.

Returns: bool — Whether the current user can create articles.

create_draft() static

Create a draft Knowledge Base article.

Since: 3.2.0
Line: 45

static public function create_draft( $input ): array|\WP_Error;
Type Name Description
mixed $input Ability input.

Returns: array|\WP_Error — Created article data or an error.