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 slug

  • singular_label (string) (Required) The singular label

  • plural_label (string) (Required) The plural label

  • labels (array) (Required) The labels

  • settings (array) (Required) Refer to official documentation

  • post_types (array) (Required) The associated post types

Return

  • boolean

Last updated