{$taxonomy}_term_new_form_tag
Action HookDescription
Fires inside the Add Tag form tag. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `category_term_new_form_tag` - `post_tag_term_new_form_tag`Hook Information
| File Location |
wp-admin/edit-tags.php
View on GitHub
|
| Hook Type | Action |
| Line Number | 454 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into {$taxonomy}_term_new_form_tag
add_action('{$taxonomy}_term_new_form_tag', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/edit-tags.php:454
- How this hook is used in WordPress core
<?php
449 * - `category_term_new_form_tag`
450 * - `post_tag_term_new_form_tag`
451 *
452 * @since 3.7.0
453 */
454 do_action( "{$taxonomy}_term_new_form_tag" );
455 ?>
456 >
457 <input type="hidden" name="action" value="add-tag" />
458 <input type="hidden" name="screen" value="<?php echo esc_attr( $current_screen->id ); ?>" />
459 <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ); ?>" />
PHP Documentation
<?php
/**
* Fires inside the Add Tag form tag.
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
* Possible hook names include:
*
* - `category_term_new_form_tag`
* - `post_tag_term_new_form_tag`
*
* @since 3.7.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/edit-tags.php
Related Hooks
Related hooks will be displayed here in future updates.