register_taxonomy ( $taxonomy, $object_type, $args = array() )

  • (string) $taxonomy Taxonomy key, must not exceed 32 characters.
  • (array|string) $object_type Object type or array of object types with which the taxonomy should be associated.
  • (array|string) $args { Optional. Array or query string of arguments for registering a taxonomy.
  • (WP_Error|void) WP_Error, if errors.
Defined at:
Change Log:
  • 4: .
  • 4: .
  • 4: .
  • 4: .
  • 4: .
  • 5: .


Creates or modifies a taxonomy object.

Note: Do not use before the {@see 'init'} hook.

A simple function for creating or modifying a taxonomy object based on the parameters given. If modifying an existing taxonomy object, note that the $object_type value from the original registration will be overwritten.

Related Functions

unregister_taxonomy, is_taxonomy, get_taxonomy, register_meta, register_taxonomy_for_object_type

Top Google Results

User discussions

wpseek mobile