{$taxonomy}_pre_add_form WordPress Action Hook

The {$taxonomy}_pre_add_form hook is triggered before a new term is added to the database. It allows you to modify the form data before it is saved.

do_action( "{$taxonomy}_pre_add_form", string $taxonomy ) #

Fires before the Add Term form for all taxonomies.


Description

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

Possible hook names include:

  • category_pre_add_form
  • post_tag_pre_add_form

Top ↑

Parameters

$taxonomy

(string)The taxonomy slug.


Top ↑

Source

File: wp-admin/edit-tags.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.