rest_after_insert_{$this->taxonomy}
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
do_action( "rest_after_insert_{$this->taxonomy}", WP_Term $term, WP_REST_Request $request, bool $creating )
Описание
Динамическая часть имени хука, $this->taxonomy, соответствует слагу таксономии.
Возможные имена хуков:
rest_after_insert_category
rest_after_insert_post_tag
Оригинал (английский)
The dynamic portion of the hook name, $this->taxonomy, refers to the taxonomy slug.
Possible hook names include:
rest_after_insert_categoryrest_after_insert_post_tag
Динамические части имени
{$this->taxonomy}- Динамическая часть имени хука.
Параметры
$term
WP_Term
обязательный
$request
WP_REST_Request
обязательный
$creating
bool
обязательный
Исходный код
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php:624
do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, true );
История изменений
| Версия | Описание |
|---|---|
| 5.0.0 | Introduced. |

