WordPress at a glance
filter is not described

rest_pre_insert_(taxonomy) filter-hook . WP 4.7.0

Filters term data before inserting term via the REST API.

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


add_filter( 'rest_pre_insert_(taxonomy)', 'filter_function_name_8561', 10, 2 );
function filter_function_name_8561( $prepared_term, $request ){
	// filter...

	return $prepared_term;
Term object.
Request object.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 712
return apply_filters( "rest_pre_insert_{$this->taxonomy}", $prepared_term, $request );

Where the hook is used (in WP core)

Использование не найдено.