Recent

Display class

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;
TypeNameDescription
string|array$argsParameters in a query string format or array.

Returns: string — HTML formatted list of related posts.

Returns the link attributes.

Since: 3.1.0
Line: 250

static public function link_attributes( $args ): string;
TypeNameDescription
array$argsArray 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;
TypeNameDescription
array$argsArray 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;
TypeNameDescription
array$argsArray 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;
TypeNameDescription
array$argsArray 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;
TypeNameDescription
array$argsArray of arguments.
object$resultObject 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;
TypeNameDescription
array$argsArray of arguments.
object$resultObject 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;
TypeNameDescription
array$argsArray of arguments.
object$resultObject 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;
TypeNameDescription
array$argsArray of arguments.
object$resultObject 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;
TypeNameDescription
array$argsArray of arguments.
object$resultObject of the current post result.

Returns: string — Space separated list of link attributes

Returns the permalink of each list item.

Since: 3.1.0
Line: 508

static public function get_permalink( $args, $result ): string;
TypeNameDescription
array$argsArray of arguments.
object$resultObject of the current post result.

Returns: string — Space separated list of link attributes

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;
TypeNameDescription
array$argsArray of arguments.
object$resultObject 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;
TypeNameDescription
int|\WP_Post$postPost ID or WP_Post object.
int|string$excerpt_lengthLength of the excerpt in words.
bool$use_excerptUse Excerpt.

Returns: string — Post Excerpt