\Barn2\Plugin\Posts_Table_ProTable_Shortcode

This class handles our posts table shortcode.

Example usage: [posts_table post_type="band" columns="title,content,tax:country,tax:genre,cf:_price,cf:stock" tag="cool", term="country:uk,artist:beatles"]

Summary

Methods
Properties
Constants
is_required()
register()
do_shortcode()
No public properties found
SHORTCODE
No protected methods found
No protected properties found
N/A
can_do_shortocde()
back_compat_args()
No private properties found
N/A

Constants

SHORTCODE

SHORTCODE ='posts_table'

Methods

is_required()

is_required(): boolean

Is this object required?

Returns

boolean —

true if required, false otherwise.

register()

register()

do_shortcode()

do_shortcode(array  $atts,string  $content = ''): string

Handles our posts data table shortcode.

Parameters

array $atts

The attributes passed in to the shortcode

string $content

The content passed to the shortcode (not used)

Returns

string —

The shortcode output

can_do_shortocde()

can_do_shortocde()

back_compat_args()

back_compat_args(  $args)

Parameters

$args