\Onyx\Cpt

Properties

VariableTypeDescription
$keystringPost Type key
$namesarrayReceives post type names (name, plural, slug)
$namestringPost type name
$pluralstringPlural post type name
$slugstringPost type slug
$argumentsarrayPost type arguments (options)
$labelsarrayPost Type labels
$capabilitystringPost Type WP Capability
$capabilitiesarrayPost Type WP Capabilities
$iconstringPost Type icon
$columnsarrayPost Type custom columns
$filtersarraySelect filters

Methods

__construct()

names()

options()

capability()

capabilities()

labels()

icon()

get_name()

validate_name_params()

create_labels()

create_cpt_arguments()

register_cpt()

register()

columns()

manage_columns()

custom_columns()

sortable_columns()

orderby_columns()

register_columns()

filters()

manage_filters()