Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_insert_{$this->taxonomy} ›

Depuis4.7.0
Dépréciéen/a
do_action( "rest_insert_{$this->taxonomy}", $term, $request, true )
Paramètres: (3)
  • (WP_Term) $term Inserted or updated term object.
    Requis: Oui
  • (WP_REST_Request) $request Request object.
    Requis: Oui
  • (bool) $creating True when creating a term, false when updating.
    Requis: Oui
Défini(e) dans:
Codex:

Fires after a single term is created or updated via the REST API.

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





Source

do_action( "rest_insert_{$this->taxonomy}", $term, $request, true );