WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
6 | * @subpackage Administration |
7 | */ |
8 |
|
9 | if ( empty($tag_ID) ) { ?> |
10 | <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div> |
11 | <?php |
12 | return; |
13 | } |
14 |
|
15 | do_action('edit_tag_form_pre', $tag); ?> |
16 |
|
17 | <div class="wrap"> |
18 | <?php screen_icon(); ?> |
19 | <h2><?php _e('Edit Tag'); ?></h2> |
20 | <div id="ajax-response"></div> |
21 | <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"> |
22 | <input type="hidden" name="action" value="editedtag" /> |
23 | <input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" /> |
24 | <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" /> |