Recent

Related class

Class to handle related articles functionality.

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

Methods

__construct()

Constructor

Since: 2.3.0
Line: 31

public function __construct(  );

Get related articles query.

Since: 3.0.0
Line: 48

static public function get_related_articles_query( $args = ... ): \WP_Query;
TypeNameDescription
array$args{

Returns: \WP_Query — Related articles query object.

Get related knowledge base articles.

Since: 2.3.0
Line: 246

static public function get_related_articles( $args = ... ): string;
TypeNameDescription
array$args{

Returns: string — Related knowledge base articles HTML, or empty string if no posts found.