Related
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() static
Get related articles query.
Since: 3.0.0
Line: 48
static public function get_related_articles_query( $args = ... ): \WP_Query;
| Type | Name | Description |
|---|---|---|
array | $args | { |
Returns: \WP_Query — Related articles query object.
get_related_articles() static
Get related knowledge base articles.
Since: 2.3.0
Line: 246
static public function get_related_articles( $args = ... ): string;
| Type | Name | Description |
|---|---|---|
array | $args | { |
Returns: string — Related knowledge base articles HTML, or empty string if no posts found.