{$taxonomy}_add_form_fields WordPress Action Hook

The {$taxonomy}_add_form_fields hook is used to add new fields to the add form for a given taxonomy. This hook is called once for each field that is added. The new fields can be used to add data to the taxonomy term that is being created.

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

Fires after the Add Term form fields.


Description

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

Possible hook names include:

  • category_add_form_fields
  • post_tag_add_form_fields

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.