Display
Display class
Namespace: WebberZone\WFP\Frontend
Since: 3.1.0
Source: includes/frontend/class-display.php line 23
Methods
__construct()
Constructor class.
Since: 3.1.0
Line: 30
public function __construct( );
followed_posts() static
Main function to generate the list of followed posts
Since: 3.1.0
Line: 41
static public function followed_posts( $args = ... ): string;
| Type | Name | Description |
|---|---|---|
string|array | $args | Parameters in a query string format or array. |
Returns: string — HTML formatted list of related posts.
link_attributes() static
Returns the link attributes.
Since: 3.1.0
Line: 250
static public function link_attributes( $args ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
Returns: string — Space separated list of link attributes
heading_title() static
Returns the heading of the followed posts.
Since: 3.1.0
Line: 285
static public function heading_title( $args ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
Returns: string — Space separated list of link attributes
before_list() static
Returns the opening tag of the followed posts list.
Since: 3.1.0
Line: 314
static public function before_list( $args ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
Returns: string — Space separated list of link attributes
after_list() static
Returns the closing tag of the followed posts list.
Since: 3.1.0
Line: 338
static public function after_list( $args ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
Returns: string — Space separated list of link attributes
before_list_item() static
Returns the opening tag of each list item.
Since: 3.1.0
Line: 363
static public function before_list_item( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
after_list_item() static
Returns the closing tag of each list item.
Since: 3.1.0
Line: 389
static public function after_list_item( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
get_the_title() static
Returns the title of each list item.
Since: 3.1.0
Line: 415
static public function get_the_title( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
author() static
Returns the author of each list item.
Since: 3.1.0
Line: 441
static public function author( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
date() static
Returns the date of each list item.
Since: 3.1.0
Line: 482
static public function date( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
get_permalink() static
Returns the permalink of each list item.
Since: 3.1.0
Line: 508
static public function get_permalink( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
list_link() static
Returns the formatted list item with link and and thumbnail for each list item.
Since: 3.1.0
Line: 534
static public function list_link( $args, $result ): string;
| Type | Name | Description |
|---|---|---|
array | $args | Array of arguments. |
object | $result | Object of the current post result. |
Returns: string — Space separated list of link attributes
get_the_excerpt() static
Function to create an excerpt for the post.
Since: 3.1.0
Line: 589
static public function get_the_excerpt( $post, $excerpt_length = ..., $use_excerpt = ... ): string;
| Type | Name | Description |
|---|---|---|
int|\WP_Post | $post | Post ID or WP_Post object. |
int|string | $excerpt_length | Length of the excerpt in words. |
bool | $use_excerpt | Use Excerpt. |
Returns: string — Post Excerpt