Table_Shortcode implements Service, Registerable, Conditional
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"]
Tags
Interfaces, Classes and Traits
- Service
 - Registerable
 - Conditional
 
Table of Contents
- SHORTCODE = 'posts_table'
 - change_default_shortcode_atts() : array<string|int, mixed>
 - Change the default shortcode attributes.
 - do_shortcode() : string
 - Handles our posts data table shortcode.
 - is_required() : mixed
 - register() : mixed
 - back_compat_args() : mixed
 - can_do_shortocde() : mixed
 
Constants
SHORTCODE
    public
    mixed
    SHORTCODE
    = 'posts_table'
    
        
    
    Tags
Methods
change_default_shortcode_atts()
Change the default shortcode attributes.
    public
                change_default_shortcode_atts(array<string|int, mixed> $out, array<string|int, mixed> $pairs, array<string|int, mixed> $atts, string $shortcode) : array<string|int, mixed>
    
        Parameters
- $out : array<string|int, mixed>
 - 
                    
The output array of shortcode attributes.
 - $pairs : array<string|int, mixed>
 - 
                    
The supported attributes and their defaults.
 - $atts : array<string|int, mixed>
 - 
                    
The user defined shortcode attributes.
 - $shortcode : string
 - 
                    
The shortcode name.
 
Tags
Return values
array<string|int, mixed> —The output array of shortcode attributes.
do_shortcode()
Handles our posts data table shortcode.
    public
            static    do_shortcode(array<string|int, mixed> $atts[, string $content = '' ]) : string
    
        Parameters
- $atts : array<string|int, mixed>
 - 
                    
The attributes passed in to the shortcode
 - $content : string = ''
 - 
                    
The content passed to the shortcode (not used)
 
Tags
Return values
string —The shortcode output
is_required()
    public
                is_required() : mixed
    
    
    
    Tags
Return values
mixed —register()
    public
                register() : mixed
    
    
    
    Tags
Return values
mixed —back_compat_args()
    private
            static    back_compat_args(array<string|int, mixed> $args) : mixed
    
        Parameters
- $args : array<string|int, mixed>
 
Tags
Return values
mixed —can_do_shortocde()
    private
            static    can_do_shortocde() : mixed