wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



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

Seit4.7.0
Veraltetn/v
apply_filters( "rest_pre_insert_{$this->taxonomy}", $prepared_term, $request )
Parameter: (2)
  • (object) $prepared_term Term object.
    Erforderlich: Ja
  • (WP_REST_Request) $request Request object.
    Erforderlich: Ja
Definiert in:
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




Quellcode

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