register_acpt_taxonomy
register_acpt_taxonomy
Register a new custom taxonomy.
Usage
register_acpt_taxonomy([
"slug" => "new-tax",
"singular_label" => "New Taxonomy",
"plural_label" => "New Taxonomies",
"labels" => [],
"settings" => [],
"post_types" => ["new-cpt"],
]);
Parameters
slug
(string) (Required) The taxonomy slugsingular_label
(string) (Required) The singular labelplural_label
(string) (Required) The plural labellabels
(array) (Required) The labelssettings
(array) (Required) Refer to official documentationpost_types
(array) (Required) The associated post types
Return
boolean
Last updated