template-functions.php

Template functions for Posts Table Pro.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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