Table_Args
Responsible for storing and validating the posts table arguments.
Parses an array of args into the corresponding properties.
Tags
Table of Contents
- $author : mixed
- $auto_width : mixed
- $button_text : mixed
- $cache : mixed
- $category : mixed
- $cf : mixed
- $column_breakpoints : mixed
- $column_type : mixed
- $columns : mixed
- $content_length : mixed
- $date_format : mixed
- $day : mixed
- $doc_author : mixed
- $doc_category : mixed
- $doc_tag : mixed
- $document_link : mixed
- $excerpt_length : mixed
- $exclude : mixed
- $exclude_category : mixed
- $exclude_doc_category : mixed
- $exclude_term : mixed
- $filter_headings : mixed
- $filters : mixed
- $folder_icon_color : mixed
- $folder_icon_custom : mixed
- $folder_icon_subcolor : mixed
- $folder_icon_svg_closed : mixed
- $folder_icon_svg_open : mixed
- $folder_status : mixed
- $folder_status_custom : mixed
- $folders : mixed
- $folders_order_by : mixed
- $grid_columns : mixed
- $grid_content : mixed
- $grid_document_title_link : mixed
- $grid_filename_link : mixed
- $grid_links : mixed
- $headings : mixed
- $hide_header : mixed
- $image_size : mixed
- $include : mixed
- $layout : mixed
- $lazy_load : mixed
- $lightbox : mixed
- $link_destination : mixed
- $link_icon : mixed
- $link_style : mixed
- $link_target : mixed
- $link_text : mixed
- $links : mixed
- $month : mixed
- $multi_download_button : mixed
- $multi_download_text : mixed
- $multi_downloads : mixed
- $new_tab_links : mixed
- $no_posts_filtered_message : mixed
- $no_posts_message : mixed
- $num_order : mixed
- $numeric_terms : mixed
- $offset : mixed
- $page_length : mixed
- $pagination : mixed
- $paging_type : mixed
- $post_limit : mixed
- $post_mime_type : mixed
- $post_type : mixed
- $preview : mixed
- $preview_icon : mixed
- $preview_style : mixed
- $preview_text : mixed
- $priorities : mixed
- $reset_button : mixed
- $responsive_control : mixed
- $responsive_display : mixed
- $rows_per_page : mixed
- $scroll_offset : mixed
- $search_box : mixed
- $search_filters : mixed
- $search_on_click : mixed
- $search_term : mixed
- $shortcodes : mixed
- $show_footer : mixed
- $show_hidden_columns : mixed
- $sort_by : mixed
- $sort_order : mixed
- $status : mixed
- $sticky_header : mixed
- $table_document_title_link : mixed
- $table_filename_link : mixed
- $tag : mixed
- $term : mixed
- $totals : mixed
- $user_search_term : mixed
- $widths : mixed
- $wrap : mixed
- $year : mixed
- $args : array<string|int, mixed>
- $default_args : array<string|int, mixed>
- __construct() : mixed
- get_args() : mixed
- get_defaults() : mixed
- Deprecated.
- get_site_defaults() : array<string|int, mixed>
- Get the default table args, including plugin settings. Plugin settings override the initial args.
- get_table_defaults() : array<string|int, mixed>
- Get the initial default table args, not including plugin settings.
- get_user_defaults() : mixed
- Deprecated.
- set_args() : mixed
- array_filter_custom_field_or_taxonomy() : mixed
- array_filter_validate_boolean() : mixed
- parse_args() : mixed
- set_columns() : mixed
- Validate the columns arg, and stores the result in the $columns and $headings properties.
- set_custom_properties() : mixed
- set_filters() : mixed
- Validate the filters arg, and stores the result in the $filters and $filter_headings properties.
- set_image_column_width() : mixed
- set_image_size() : mixed
- set_post_type() : mixed
Properties
$author
    public
        mixed
    $author
    
    
        
    
    Tags
$auto_width
    public
        mixed
    $auto_width
    
    
        
    
    Tags
$button_text
    public
        mixed
    $button_text
    
    
        
    
    Tags
$cache
    public
        mixed
    $cache
    
    
        
    
    Tags
$category
    public
        mixed
    $category
    
    
        
    
    Tags
$cf
    public
        mixed
    $cf
    
    
        
    
    Tags
$column_breakpoints
    public
        mixed
    $column_breakpoints
    
    
        
    
    Tags
$column_type
    public
        mixed
    $column_type
    
    
        
    
    Tags
$columns
    public
        mixed
    $columns
    
    
        
    
    Tags
$content_length
    public
        mixed
    $content_length
    
    
        
    
    Tags
$date_format
    public
        mixed
    $date_format
    
    
        
    
    Tags
$day
    public
        mixed
    $day
    
    
        
    
    Tags
$doc_author
    public
        mixed
    $doc_author
    
    
        
    
    Tags
$doc_category
    public
        mixed
    $doc_category
    
    
        
    
    Tags
$doc_tag
    public
        mixed
    $doc_tag
    
    
        
    
    Tags
$document_link
    public
        mixed
    $document_link
    
    
        
    
    Tags
$excerpt_length
    public
        mixed
    $excerpt_length
    
    
        
    
    Tags
$exclude
    public
        mixed
    $exclude
    
    
        
    
    Tags
$exclude_category
    public
        mixed
    $exclude_category
    
    
        
    
    Tags
$exclude_doc_category
    public
        mixed
    $exclude_doc_category
    
    
        
    
    Tags
$exclude_term
    public
        mixed
    $exclude_term
    
    
        
    
    Tags
$filter_headings
    public
        mixed
    $filter_headings
    
    
        
    
    Tags
$filters
    public
        mixed
    $filters
    
    
        
    
    Tags
$folder_icon_color
    public
        mixed
    $folder_icon_color
    
    
        
    
    Tags
$folder_icon_custom
    public
        mixed
    $folder_icon_custom
    
    
        
    
    Tags
$folder_icon_subcolor
    public
        mixed
    $folder_icon_subcolor
    
    
        
    
    Tags
$folder_icon_svg_closed
    public
        mixed
    $folder_icon_svg_closed
    
    
        
    
    Tags
$folder_icon_svg_open
    public
        mixed
    $folder_icon_svg_open
    
    
        
    
    Tags
$folder_status
    public
        mixed
    $folder_status
    
    
        
    
    Tags
$folder_status_custom
    public
        mixed
    $folder_status_custom
    
    
        
    
    Tags
$folders
    public
        mixed
    $folders
    
    
        
    
    Tags
$folders_order_by
    public
        mixed
    $folders_order_by
    
    
        
    
    Tags
$grid_columns
    public
        mixed
    $grid_columns
    
    
        
    
    Tags
$grid_content
    public
        mixed
    $grid_content
    
    
        
    
    Tags
$grid_document_title_link
    public
        mixed
    $grid_document_title_link
    
    
        
    
    Tags
$grid_filename_link
    public
        mixed
    $grid_filename_link
    
    
        
    
    Tags
$grid_links
    public
        mixed
    $grid_links
    
    
        
    
    Tags
$headings
    public
        mixed
    $headings
    
    
        
    
    Tags
$hide_header
    public
        mixed
    $hide_header
    
    
        
    
    Tags
$image_size
    public
        mixed
    $image_size
    
    
        
    
    Tags
$include
    public
        mixed
    $include
    
    
        
    
    Tags
$layout
    public
        mixed
    $layout
    
    
        
    
    Tags
$lazy_load
    public
        mixed
    $lazy_load
    
    
        
    
    Tags
$lightbox
    public
        mixed
    $lightbox
    
    
        
    
    Tags
$link_destination
    public
        mixed
    $link_destination
    
    
        
    
    Tags
$link_icon
    public
        mixed
    $link_icon
    
    
        
    
    Tags
$link_style
    public
        mixed
    $link_style
    
    
        
    
    Tags
$link_target
    public
        mixed
    $link_target
    
    
        
    
    Tags
$link_text
    public
        mixed
    $link_text
    
    
        
    
    Tags
$links
    public
        mixed
    $links
    
    
        
    
    Tags
$month
    public
        mixed
    $month
    
    
        
    
    Tags
$multi_download_button
    public
        mixed
    $multi_download_button
    
    
        
    
    Tags
$multi_download_text
    public
        mixed
    $multi_download_text
    
    
        
    
    Tags
$multi_downloads
    public
        mixed
    $multi_downloads
    
    
        
    
    Tags
$new_tab_links
    public
        mixed
    $new_tab_links
    
    
        
    
    Tags
$no_posts_filtered_message
    public
        mixed
    $no_posts_filtered_message
    
    
        
    
    Tags
$no_posts_message
    public
        mixed
    $no_posts_message
    
    
        
    
    Tags
$num_order
    public
        mixed
    $num_order
    
    
        
    
    Tags
$numeric_terms
    public
        mixed
    $numeric_terms
    
    
        
    
    Tags
$offset
    public
        mixed
    $offset
    
    
        
    
    Tags
$page_length
    public
        mixed
    $page_length
    
    
        
    
    Tags
$pagination
    public
        mixed
    $pagination
    
    
        
    
    Tags
$paging_type
    public
        mixed
    $paging_type
    
    
        
    
    Tags
$post_limit
    public
        mixed
    $post_limit
    
    
        
    
    Tags
$post_mime_type
    public
        mixed
    $post_mime_type
    
    
        
    
    Tags
$post_type
    public
        mixed
    $post_type
    
    
        
    
    Tags
$preview
    public
        mixed
    $preview
    
    
        
    
    Tags
$preview_icon
    public
        mixed
    $preview_icon
    
    
        
    
    Tags
$preview_style
    public
        mixed
    $preview_style
    
    
        
    
    Tags
$preview_text
    public
        mixed
    $preview_text
    
    
        
    
    Tags
$priorities
    public
        mixed
    $priorities
    
    
        
    
    Tags
$reset_button
    public
        mixed
    $reset_button
    
    
        
    
    Tags
$responsive_control
    public
        mixed
    $responsive_control
    
    
        
    
    Tags
$responsive_display
    public
        mixed
    $responsive_display
    
    
        
    
    Tags
$rows_per_page
    public
        mixed
    $rows_per_page
    
    
        
    
    Tags
$scroll_offset
    public
        mixed
    $scroll_offset
    
    
        
    
    Tags
$search_box
    public
        mixed
    $search_box
    
    
        
    
    Tags
$search_filters
    public
        mixed
    $search_filters
     = []
    
        
    
    Tags
$search_on_click
    public
        mixed
    $search_on_click
    
    
        
    
    Tags
$search_term
    public
        mixed
    $search_term
    
    
        
    
    Tags
$shortcodes
    public
        mixed
    $shortcodes
    
    
        
    
    Tags
$show_footer
    public
        mixed
    $show_footer
    
    
        
    
    Tags
$show_hidden_columns
    public
        mixed
    $show_hidden_columns
    
    
        
    
    Tags
$sort_by
    public
        mixed
    $sort_by
    
    
        
    
    Tags
$sort_order
    public
        mixed
    $sort_order
    
    
        
    
    Tags
$status
    public
        mixed
    $status
    
    
        
    
    Tags
$sticky_header
    public
        mixed
    $sticky_header
    
    
        
    
    Tags
$table_document_title_link
    public
        mixed
    $table_document_title_link
    
    
        
    
    Tags
$table_filename_link
    public
        mixed
    $table_filename_link
    
    
        
    
    Tags
$tag
    public
        mixed
    $tag
    
    
        
    
    Tags
$term
    public
        mixed
    $term
    
    
        
    
    Tags
$totals
    public
        mixed
    $totals
    
    
        
    
    Tags
$user_search_term
    public
        mixed
    $user_search_term
    
    
        
    
    Tags
$widths
    public
        mixed
    $widths
    
    
        
    
    Tags
$wrap
    public
        mixed
    $wrap
    
    
        
    
    Tags
$year
    public
        mixed
    $year
    
    
        
    
    Tags
$args
    private
        array<string|int, mixed>
    $args
     = []
    
        The args array.
Tags
$default_args
    private
    static    array<string|int, mixed>
    $default_args
     = [
    'columns' => 'image,title,excerpt,categories,author,date',
    // allowed: id, title, content, excerpt, date, categories, tags, author, status, image, tax:<taxonomy_name>, cf:<custom_field>
    'widths' => '',
    'auto_width' => true,
    'priorities' => '',
    'column_breakpoints' => '',
    'responsive_control' => 'inline',
    // inline or column
    'responsive_display' => 'child_row',
    // child_row, child_row_visible, or modal
    'wrap' => true,
    'show_footer' => false,
    'search_on_click' => true,
    'filters' => false,
    'scroll_offset' => 15,
    'content_length' => 15,
    'excerpt_length' => -1,
    'links' => 'title,categories,tags,terms,author',
    // set to all or none, or any combination of id, title, terms, tags, categories, author, image
    'lazy_load' => false,
    'cache' => false,
    'image_size' => '70x70',
    'lightbox' => true,
    'shortcodes' => false,
    'date_format' => '',
    'column_type' => '',
    'no_posts_message' => '',
    'no_posts_filtered_message' => '',
    'paging_type' => 'numbers',
    'page_length' => 'bottom',
    'search_box' => true,
    'totals' => 'bottom',
    'pagination' => 'bottom',
    'reset_button' => false,
    'button_text' => 'View',
    'rows_per_page' => 25,
    'post_limit' => 500,
    'sort_by' => 'date',
    'sort_order' => '',
    // no default set - see parse_args()
    'post_type' => 'post',
    'status' => 'publish',
    'category' => '',
    // list of slugs or IDs
    'exclude_category' => '',
    // list of slugs or IDs
    'tag' => '',
    // list of slugs or IDs
    'term' => '',
    // list of terms of the form <taxonomy>:<term>
    'exclude_term' => '',
    // list of terms of the form <taxonomy>:<term>
    'numeric_terms' => false,
    // set to true if using categories, tags or terms with numeric slugs
    'cf' => '',
    // list of custom fields of the form <field_key>:<field_value>
    'year' => '',
    'month' => '',
    'day' => '',
    'author' => '',
    // list of author IDs
    'exclude' => '',
    // list of post IDs
    'include' => '',
    // list of post IDs
    'search_term' => '',
    'show_hidden_columns' => false,
    'hide_header' => false,
    'sticky_header' => false,
    'date_columns' => '',
]
    
        The default table parameters
Tags
Methods
__construct()
    public
                __construct([array<string|int, mixed> $args = [] ]) : mixed
    
        Parameters
- $args : array<string|int, mixed> = []
Tags
Return values
mixed —get_args()
    public
                get_args() : mixed
    
    
    
    Tags
Return values
mixed —get_defaults()
Deprecated.
    public
            static    get_defaults() : mixed
    
    
    
    Tags
Return values
mixed —get_site_defaults()
Get the default table args, including plugin settings. Plugin settings override the initial args.
    public
            static    get_site_defaults() : array<string|int, mixed>
    
    
    
    Tags
Return values
array<string|int, mixed> —The site defaults.
get_table_defaults()
Get the initial default table args, not including plugin settings.
    public
            static    get_table_defaults() : array<string|int, mixed>
    
    
    
    Tags
Return values
array<string|int, mixed> —The table defaults.
get_user_defaults()
Deprecated.
    public
            static    get_user_defaults() : mixed
    
    
    
    Tags
Return values
mixed —set_args()
    public
                set_args(array<string|int, mixed> $args) : mixed
    
        Parameters
- $args : array<string|int, mixed>
Tags
Return values
mixed —array_filter_custom_field_or_taxonomy()
    private
                array_filter_custom_field_or_taxonomy(mixed $column) : mixed
    
        Parameters
- $column : mixed
Tags
Return values
mixed —array_filter_validate_boolean()
    private
                array_filter_validate_boolean(mixed $var) : mixed
    
        Parameters
- $var : mixed
Tags
Return values
mixed —parse_args()
    private
                parse_args(array<string|int, mixed> $args) : mixed
    
        Parameters
- $args : array<string|int, mixed>
Tags
Return values
mixed —set_columns()
Validate the columns arg, and stores the result in the $columns and $headings properties.
    private
                set_columns() : mixed
    
    
    
    Tags
Return values
mixed —set_custom_properties()
    private
                set_custom_properties(mixed $custom_properties) : mixed
    
        Parameters
- $custom_properties : mixed
Tags
Return values
mixed —set_filters()
Validate the filters arg, and stores the result in the $filters and $filter_headings properties.
    private
                set_filters() : mixed
    
    
    
    Tags
Return values
mixed —set_image_column_width()
    private
                set_image_column_width() : mixed
    
    
    
    Tags
Return values
mixed —set_image_size()
    private
                set_image_size() : mixed
    
    
    
    Tags
Return values
mixed —set_post_type()
    private
                set_post_type() : mixed