wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_pre_insert_{$this->taxonomy} › Filtr WordPress Hooks

Od4.7.0
Przestarzałyn/a
› apply_filters( "rest_pre_insert_{$this->taxonomy}", $prepared_term, $request )
Parametry: (2)
  • () prepared_term Term object.
    Wymagane: Tak
  • () request Request object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters term data before inserting term via the REST API.

The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. Possible hook names include: - `rest_pre_insert_category` - `rest_pre_insert_post_tag`




Źródło

return apply_filters( "rest_pre_insert_{$this->taxonomy}", $prepared_term, $request );