template-functions.php
Template functions for Posts Table Pro.
Tags
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
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.