Action hook 'add_tag_form_fields'

in WP Core File wp-admin/edit-tags.php at line 536

View Source

add_tag_form_fields

Action Hook
Description
Fires after the Add Tag form fields for non-hierarchical taxonomies.

Hook Information

File Location wp-admin/edit-tags.php View on GitHub
Hook Type Action
Line Number 536

Hook Parameters

Type Name Description
string $taxonomy The taxonomy slug.

Usage Examples

Basic Usage
<?php
// Hook into add_tag_form_fields
add_action('add_tag_form_fields', 'my_custom_function', 10, 1);

function my_custom_function($taxonomy) {
    // Your custom code here
}

Source Code Context

wp-admin/edit-tags.php:536 - How this hook is used in WordPress core
<?php
 531  		 *
 532  		 * @since 3.0.0
 533  		 *
 534  		 * @param string $taxonomy The taxonomy slug.
 535  		 */
 536  		do_action( 'add_tag_form_fields', $taxonomy );
 537  	}
 538  
 539  	/**
 540  	 * Fires after the Add Term form fields.
 541  	 *

PHP Documentation

<?php
/**
		 * Fires after the Add Tag form fields for non-hierarchical taxonomies.
		 *
		 * @since 3.0.0
		 *
		 * @param string $taxonomy The taxonomy slug.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/edit-tags.php
Related Hooks

Related hooks will be displayed here in future updates.