{$taxonomy}_add_form WordPress Action Hook

The {$taxonomy}_add_form hook is used to add a new term to a taxonomy. This hook is used when a user creates a new term via the taxonomy's Add New form.

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

Fires at the end of 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_add_form
  • post_tag_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.