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 |
---|---|
264 | <?php |
265 | if ( $can_manage ) |
266 | wp_tag_cloud(array('taxonomy' => $taxonomy, 'link' => 'edit')); |
267 | else |
268 | wp_tag_cloud(array('taxonomy' => $taxonomy)); |
269 | ?> |
270 | </div> |
271 |
|
272 | <?php if ( $can_manage ) { |
273 | do_action('add_tag_form_pre'); ?> |
274 |
|
275 | <div class="form-wrap"> |
276 | <h3><?php _e('Add a New Tag'); ?></h3> |
277 | <div id="ajax-response"></div> |
278 | <form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate"> |
279 | <input type="hidden" name="action" value="addtag" /> |
280 | <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" /> |
281 | <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?> |
282 |
|