ACF Table Field Pro Add-on Docs Last updated:

Select plugin version:

Since version: v1.0.0

Rest API

New since version 1.6.0

New table option:

  • eb Disables table output when all body cells are empty.
  • eh Disables table output when all header cells are empty.
  • ef Disables table output when all footer cells are empty.
  • esb Disables table output when all body stub-cells are empty.
  • esh Disables table output when header stub-cell is empty.
  • esf Disables table output when footer stub-cell is empty.

Schema

$schema = array( 
    '$schema' => 'http://json-schema.org/draft-04/schema#', 
    'title' => 'ACF table_pro custom field type', 
    'type' => array( 'object', 'null' ), 
    'properties' => array( 
        't' => array( 
            'title' => 'Table general storage', 
            'type' => 'object', 
            'properties' => array( 
                'o' => array( 
                    'title' => 'Table options', 
                    'type' => 'object', 
                    'properties' => array( 
                        'ct' => array( 
                            'title' => 'Content type', 
                            'type' => 'string', 
                            'enum' => array( 'st', 'ed' ), 
                        ), 
                        'tb' => array( 
                            'title' => 'Editor toolbar', 
                            'type' => 'string', 
                            'enum' => array( 'full', 'basic' ), 
                            'pattern' => '.*', 
                        ), 
                        'cols' => array( 
                            'title' => 'Amount of columns', 
                            'type' => 'integer', 
                        ), 
                        'rows' => array( 
                            'title' => 'Amount of rows', 
                            'type' => 'integer', 
                        ), 
                        'uf' => array( 
                            'title' => 'Use footer', 
                            'type' => 'string', 
                            'enum' => array( 'y', 'n' ), 
                        ), 
                        'uh' => array( 
                            'title' => 'Use header', 
                            'type' => 'string', 
                            'enum' => array( 'y', 'n' ), 
                        ), 
                        'sc' => array( 
                            'title' => 'Use stub column:', 
                            'type' => 'string', 
                            'enum' => array( 'y', 'n' ), 
                        ), 
                        'st' => array( 
                            'title' => 'Style', 
                            'type' => 'string', 
                        ), 
                        'ca' => array( 
                            'title' => 'Table caption value', 
                            'type' => 'string', 
                        ), 
                        'pc' => array( 
                            'title' => 'Preview caption', 
                            'type' => 'string', 
                            'enum' => array( 'y', 'n' ), 
                        ), 
                        'eb' => array( 
                             'title' => 'Disables table output when all body cells are empty', 
                             'type' => 'string', 
                             'enum' => array( 'y' ), 
                        ), 
                        'eh' => array( 
                             'title' => 'Disables table output when all header cells are empty', 
                             'type' => 'string', 
                             'enum' => array( 'y' ), 
                        ), 
                        'ef' => array( 
                             'title' => 'Disables table output when all footer cells are empty', 
                             'type' => 'string', 
                             'enum' => array( 'y' ), 
                        ), 
                        'es' => array( 
                             'title' => 'Disables table output when all body stub-cells are empty', 
                             'type' => 'string', 
                             'enum' => array( 'y' ), 
                        ), 
                        'esh' => array( 
                             'title' => 'Disables table output when header stub-cell is empty', 
                             'type' => 'string', 
                             'enum' => array( 'y' ), 
                        ), 
                        'esh' => array( 
                             'title' => 'Disables table output when footer stub-cell is empty', 
                             'type' => 'string', 
                             'enum' => array( 'y' ), 
                        ), 
                        'changed' => array( 
                            'title' => 'Whether the field has already been edited or changed.', 
                            'type' => 'boolean', 
                        ), 
                    ), 
                ), 
            ), 
            'required' => array( 'ca', 'ct', 'tb', 'uf', 'uh', 'sc', 'st', 'cols', 'rows', 'changed' ), 
        ), 
        'c' => array( 
            'title' => 'Table columns row', 
            'type' => 'array', 
            'items' => array( 
                'type' => 'object', 
                'properties' => array( 
                    'c' => array( 
                        'title' => 'Table colums', 
                        'type' => 'array', 
                        'items' => array( 
                            'type' => 'object', 
                            'properties' => array( 
                                'c' => array( 
                                    'title' => 'Do not use', 
                                    'type' => 'string', 
                                ), 
                                'o' => array( 
                                    'title' => 'Column options', 
                                    'type' => 'object', 
                                    'properties' => array( 
                                        'st' => array( 
                                            'title' => 'Columns style', 
                                            'type' => 'string', 
                                        ), 
                                        'ct' => array( 
                                            'title' => 'Content type', 
                                            'type' => 'string', 
                                            'enum' => array( 'st', 'ed' ), 
                                        ), 
                                        'tb' => array( 
                                            'title' => 'Editor toolbar', 
                                            'type' => 'string', 
                                            'enum' => array( 'full', 'basic' ), 
                                            'pattern' => '.*', 
                                        ), 
                                        'acwv' => array( 
                                            'title' => 'Admin column width value', 
                                            'type' => 'string', 
                                            'pattern' => '^[0-9]+$', 
                                        ), 
                                        'acmiwv' => array( 
                                            'title' => 'Admin column min width value', 
                                            'type' => 'string', 
                                            'pattern' => '^[0-9]+$', 
                                        ), 
                                    ), 
                                ), 
                            ), 
                        ), 
                    ), 
                ), 
            ), 
        ), 
        'b' => array( 
            'title' => 'Table body rows', 
            'type' => 'array', 
            'items' => array( 
                'title' => 'Table body row', 
                'type' => 'object', 
                'properties' => array( 
                    'c' => array( 
                        'title' => 'Table body cells', 
                        'type' => 'array', 
                        'items' => array( 
                            'title' => 'Table body cell', 
                            'type' => 'object', 
                            'properties' => array( 
                                'c' => array( 
                                    'title' => 'Body cell content', 
                                    'type' => 'string', 
                                ), 
                                'o' => array( 
                                    'title' => 'Body cell options', 
                                    'type' => 'object', 
                                    'properties' => array( 
                                        'ct' => array( 
                                            'title' => 'Content type', 
                                            'type' => 'string', 
                                            'enum' => array( 'st', 'ed' ), 
                                        ), 
                                        'tb' => array( 
                                            'title' => 'Editor toolbar', 
                                            'type' => 'string', 
                                            'enum' => array( 'full', 'basic' ), 
                                            'pattern' => '.*', 
                                        ), 
                                        'st' => array( 
                                            'title' => 'Columns style', 
                                            'type' => 'string', 
                                        ), 
                                        'rs' => array( 
                                            'title' => 'Rowspan', 
                                            'type' => 'integer', 
                                        ), 
                                        'cs' => array( 
                                            'title' => 'Colspan', 
                                            'type' => 'integer', 
                                        ), 
                                        'hs' => array( 
                                            'title' => 'Has span', 
                                            'type' => 'object', 
                                            'properties' => array( 
                                                'c' => array( 
                                                    'title' => 'Column of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'r' => array( 
                                                    'title' => 'Row of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'rs' => array( 
                                                    'title' => 'Rowspan of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'cs' => array( 
                                                    'title' => 'Columnspan of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                            ) 
                                        ), 
                                    ), 
                                ), 
                            ), 
                        ), 
                    ), 
                    'o' => array( 
                        'title' => 'Row options', 
                        'type' => 'object', 
                        'properties' => array( 
                            'ct' => array( 
                                'title' => 'Content type', 
                                'type' => 'string', 
                                'enum' => array( 'st', 'ed' ), 
                            ), 
                            'tb' => array( 
                                'title' => 'Editor toolbar', 
                                'type' => 'string', 
                                'enum' => array( 'full', 'basic' ), 
                                'pattern' => '.*', 
                            ), 
                            'st' => array( 
                                'title' => 'Style', 
                                'type' => 'string', 
                            ), 
                        ), 
                    ), 
                ), 
            ), 
        ), 
        'h' => array( 
            'title' => 'Table header rows', 
            'type' => 'array', 
            'items' => array( 
                'type' => 'object', 
                'properties' => array( 
                    'c' => array( 
                        'title' => 'Header row cells', 
                        'type' => 'array', 
                        'items' => array( 
                            'type' => 'object', 
                            'properties' => array( 
                                'c' => array( 
                                    'title' => 'Header cell content', 
                                    'type' => 'string', 
                                ), 
                                'o' => array( 
                                    'title' => 'Header cell options', 
                                    'type' => 'object', 
                                    'properties' => array( 
                                        'ct' => array( 
                                            'title' => 'Content type', 
                                            'type' => 'string', 
                                            'enum' => array( 'st', 'ed' ), 
                                        ), 
                                        'tb' => array( 
                                            'title' => 'Editor toolbar', 
                                            'type' => 'string', 
                                            'enum' => array( 'full', 'basic' ), 
                                            'pattern' => '.*', 
                                        ), 
                                        'st' => array( 
                                            'title' => 'Columns style', 
                                            'type' => 'string', 
                                        ), 
                                        'cs' => array( 
                                            'title' => 'Colspan', 
                                            'type' => 'integer', 
                                        ), 
                                        'hs' => array( 
                                            'title' => 'Has span', 
                                            'type' => 'object', 
                                            'properties' => array( 
                                                'c' => array( 
                                                    'title' => 'Column of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'r' => array( 
                                                    'title' => 'Row of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'cs' => array( 
                                                    'title' => 'Columnspan of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                            ) 
                                        ), 
                                    ), 
                                ), 
                            ), 
                        ), 
                    ), 
                    'o' => array( 
                        'title' => 'Table header row options', 
                        'type' => 'object', 
                        'properties' => array( 
                            'ct' => array( 
                                'title' => 'Content type', 
                                'type' => 'string', 
                                'enum' => array( 'st', 'ed' ), 
                            ), 
                            'tb' => array( 
                                'title' => 'Editor toolbar', 
                                'type' => 'string', 
                                'enum' => array( 'full', 'basic' ), 
                                'pattern' => '.*', 
                            ), 
                            'st' => array( 
                                'title' => 'Columns style', 
                                'type' => 'string', 
                            ), 
                        ), 
                    ), 
                ), 
            ), 
        ), 
        'f' => array( 
            'title' => 'Table footer rows', 
            'type' => 'array', 
            'items' => array( 
                'type' => 'object', 
                'properties' => array( 
                    'c' => array( 
                        'title' => 'Footer row cells', 
                        'type' => 'array', 
                        'items' => array( 
                            'type' => 'object', 
                            'properties' => array( 
                                'c' => array( 
                                    'title' => 'Footer cell content', 
                                    'type' => 'string', 
                                ), 
                                'o' => array( 
                                    'title' => 'Footer cell options', 
                                    'type' => 'object', 
                                    'properties' => array( 
                                        'ct' => array( 
                                            'title' => 'Content type', 
                                            'type' => 'string', 
                                            'enum' => array( 'st', 'ed' ), 
                                        ), 
                                        'tb' => array( 
                                            'title' => 'Editor toolbar', 
                                            'type' => 'string', 
                                            'enum' => array( 'full', 'basic' ), 
                                            'pattern' => '.*', 
                                        ), 
                                        'st' => array( 
                                            'title' => 'Columns style', 
                                            'type' => 'string', 
                                        ), 
                                        'cs' => array( 
                                            'title' => 'Colspan', 
                                            'type' => 'integer', 
                                        ), 
                                        'hs' => array( 
                                            'title' => 'Has span', 
                                            'type' => 'object', 
                                            'properties' => array( 
                                                'c' => array( 
                                                    'title' => 'Column of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'r' => array( 
                                                    'title' => 'Row of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                                'cs' => array( 
                                                    'title' => 'Columnspan of spanning cell', 
                                                    'type' => 'integer', 
                                                ), 
                                            ) 
                                        ), 
                                    ), 
                                ), 
                            ), 
                        ), 
                    ), 
                    'o' => array( 
                        'title' => 'Table header row options', 
                        'type' => 'object', 
                        'properties' => array( 
                            'ct' => array( 
                                'title' => 'Content type', 
                                'type' => 'string', 
                                'enum' => array( 'st', 'ed' ), 
                            ), 
                            'tb' => array( 
                                'title' => 'Editor toolbar', 
                                'type' => 'string', 
                                'enum' => array( 'full', 'basic' ), 
                                'pattern' => '.*', 
                            ), 
                            'st' => array( 
                                'title' => 'Columns style', 
                                'type' => 'string', 
                            ), 
                        ), 
                    ), 
                ), 
            ), 
        ), 
        'p' => array( 
            'title' => 'Field parameter', 
            'type' => 'object', 
            'properties' => array( 
                'v' => array( 
                    'title' => 'Plugin version', 
                    'type' => 'string', 
                ), 
                'fk' => array( 
                    'title' => 'Field key', 
                    'type' => 'string', 
                ), 
                'fk' => array( 
                    'title' => 'Field name', 
                    'type' => 'string', 
                ), 
            ), 
            'required' => array( 'v', 'fk', 'fn' ), 
        ), 
    ), 
);

Previous and Next Sources

Parent sources

Parent sources

On this page