All features

Cherry Blossom feature

Content types: Taxonomies

Registers and exposes theme taxonomy definitions.

Registers and exposes theme taxonomy definitions.

Capabilities and extension points

Normalized taxonomy objects.

  • var array|null

Registration and definition errors.

  • var array

Initializes the taxonomy controller.

Registers taxonomy hooks.

Registers configured taxonomies.

Dispatches pre-insert term filtering to its registered definition.

  • param string|array $term Term name or structured term data.
  • param string $taxonomy Taxonomy name.
  • param array $arguments Arguments passed to wp_insert_term().
  • return string|array|\WP_Error Filtered term value.

Dispatches inserted term data filtering to its registered definition.

  • param array $data Sanitized term data.
  • param string $taxonomy Taxonomy name.
  • param array $arguments Arguments passed to wp_insert_term().
  • return array Filtered term data.

Dispatches updated term data filtering to its registered definition.

  • param array $data Sanitized term data.
  • param int $term_id Term ID.
  • param string $taxonomy Taxonomy name.
  • param array $arguments Arguments passed to wp_update_term().
  • return array Filtered term data.

Gets a registered definition from the shared identity registry.

  • param string $name Taxonomy name.
  • return Taxonomy|null Registered definition object.

Gets normalized taxonomy objects.

  • return array Taxonomy objects keyed by name.

Gets a normalized taxonomy object.

  • param string $name Taxonomy name.
  • return Taxonomy|null Taxonomy object.

Determines whether the controller owns a taxonomy.

  • param string $name Taxonomy name.
  • return bool Whether the taxonomy exists.

Gets combined standalone and nested taxonomy definitions.

Standalone definitions control structural settings. Nested definitions supply convenient post type associations and defaults when no standalone definition exists.

  • return array Taxonomy definitions.

Gets post types associated through nested definitions.

  • param string $taxonomy_name Taxonomy name.
  • return array Post type identifiers.

Normalizes one taxonomy definition.

  • param string|int $name Definition key.
  • param mixed $definition Definition data, class name, or unsupported value.
  • return Taxonomy|null Normalized definition object.

Records a controller error.

  • param string $name Definition name.
  • param \WP_Error $error Error object.

Gets controller errors.

  • return array Errors keyed by taxonomy name.

Source reference

This editable reference page is based on the PHP documentation in content-types/class-taxonomies.php.