WordPressTaxonomies


Syntax

  • register_taxonomy( $taxonomy, $object_type, $args );

Parameters

ParameterDetails
$taxonomy(string) (required) The name of the taxonomy. Name should only contain lowercase letters and the underscore character, and not be more than 32 characters long (database structure restriction).
$object_type(array/string) (required) Name of the object type for the taxonomy object. Object-types can be built-in Post Type or any Custom Post Type that may be registered.
$args(array/string) (optional) An array of Arguments.