Recent

Shortcodes class

Shortcodes

Admin Columns Class.

Namespace: WebberZone\Knowledge_Base\Frontend
Since: 2.3.0
Source: includes/frontend/class-shortcodes.php line 19

Methods

__construct()

Constructor class.

Since: 2.3.0
Line: 26

public function __construct(  );

knowledgebase() static

Create the shortcode to display the KB using [knowledgebase].

Since: 2.3.0
Line: 44

static public function knowledgebase( $atts, $content = ... ): string;
TypeNameDescription
array$attsShortcode attributes array.
string$contentContent to wrap in the Shortcode.

Returns: string — $output Formatted shortcode output

search_form() static

Create the shortcode to display the search form using [kbsearch].

Since: 2.3.0
Line: 95

static public function search_form( $atts, $content = ... ): string;
TypeNameDescription
array$attsShortcode attributes array.
string$contentContent to wrap in the Shortcode.

Returns: string — $output Formatted shortcode output

Create the shortcode to display the breadcrumb using [kbbreadcrumb].

Since: 2.3.0
Line: 129

static public function breadcrumb( $atts, $content = ... ): string;
TypeNameDescription
array$attsShortcode attributes array.
string$contentContent to wrap in the Shortcode.

Returns: string — $output Formatted shortcode output

alert() static

Create the shortcode to display alerts using [kbalert].

Since: 2.3.0
Line: 162

static public function alert( $atts, $content = ... ): string;
TypeNameDescription
array$attsShortcode attributes array.
string$contentContent to wrap in the Shortcode.

Returns: string — $output Formatted shortcode output

Create the shortcode to display related articles using [kb_related_articles].

Since: 2.3.0
Line: 202

static public function related_articles( $atts, $content = ... ): string;
TypeNameDescription
array$attsShortcode attributes array.
string$contentContent to wrap in the Shortcode.

Returns: string — $output Formatted shortcode output

toc() static

Render the [toc] shortcode.

Since: 3.1.0
Line: 245

static public function toc( $atts ): string;
TypeNameDescription
array$attsShortcode attributes.

Returns: string — TOC HTML or empty string.