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

