VOOZH about

URL: https://developer.wordpress.org/reference/hooks/created_taxonomy/

⇱ created_{$taxonomy} – Hook | Developer.WordPress.org


Skip to content

WordPress Developer Resources

created_{$taxonomy}

HomeReferenceHookscreated_{$taxonomy}

do_action( “created_{$taxonomy}”, , ,  )

Fires after a new term in a specific taxonomy is created, and after the term cache has been cleaned.

Description

The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.

Possible hook names include:

  • created_category
  • created_post_tag

Parameters

$term_idint
Term ID.
$tt_idint
Term taxonomy ID.
$argsarray
Arguments passed to wp_insert_term() .

Source

do_action( "created_{$taxonomy}", $term_id, $tt_id, $args );

View all references View on Trac View on GitHub

Related

Used byDescription
wp_insert_term()wp-includes/taxonomy.php

Adds a new term to the database.

Changelog

VersionDescription
6.1.0The $args parameter was added.
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.