{$taxonomy}_add_form
Action HookDescription
Fires at the end of the Add Term form for all taxonomies. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `category_add_form` - `post_tag_add_form`Hook Information
File Location |
wp-admin/edit-tags.php
View on GitHub
|
Hook Type | Action |
Line Number | 606 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$taxonomy
|
The taxonomy slug. |
Usage Examples
Basic Usage
<?php
// Hook into {$taxonomy}_add_form
add_action('{$taxonomy}_add_form', 'my_custom_function', 10, 1);
function my_custom_function($taxonomy) {
// Your custom code here
}
Source Code Context
wp-admin/edit-tags.php:606
- How this hook is used in WordPress core
<?php
601 *
602 * @since 3.0.0
603 *
604 * @param string $taxonomy The taxonomy slug.
605 */
606 do_action( "{$taxonomy}_add_form", $taxonomy );
607 ?>
608 </form></div>
609 </div>
610 </div><!-- /col-left -->
611
PHP Documentation
<?php
/**
* Fires at the end of the Add Term form for all taxonomies.
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
* Possible hook names include:
*
* - `category_add_form`
* - `post_tag_add_form`
*
* @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.