{$taxonomy}_pre_edit_form WordPress Action Hook

The {$taxonomy}_pre_edit_form hook is called before the taxonomy edit form is displayed. It allows you to modify the form or add additional fields before the form is displayed to the user.

do_action( "{$taxonomy}_pre_edit_form", WP_Term $tag, string $taxonomy ) #

Fires before the Edit 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_edit_form
  • post_tag_pre_edit_form

Top ↑

Parameters

$tag

(WP_Term)Current taxonomy term object.

$taxonomy

(string)Current $taxonomy slug.


Top ↑

Source

File: wp-admin/edit-tag-form.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.