Documentation

Namespaces

Barn2

Interfaces, Classes and Traits

Posts_Table_Data
Posts_Table_Args
Responsible for storing and validating the posts table arguments.
Abstract_Posts_Table_Data
Abstract post data class used to fetch data for a post in the table.

Table of Contents

ptp_get_posts_table()  : string
Retrieves a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args.
ptp_the_posts_table()  : mixed
Outputs a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args.

Functions

ptp_get_posts_table()

Retrieves a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args.

ptp_get_posts_table([array<string|int, mixed> $args = [] ]) : string
Parameters
$args : array<string|int, mixed> = []

The table args.

Tags
see
The

shortcode documentation or See Table_Args::$default_args for the list of supported args.

Return values
string

The data table as a HTML string.

ptp_the_posts_table()

Outputs a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args.

ptp_the_posts_table([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

The table args.

Tags
see
The

shortcode documentation or See Table_Args::$default_args for the list of supported args.

Return values
mixed

Search results