Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: add_category_form_pre

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
244 </div>
245
246 </div>
247 </div><!-- /col-right -->
248
249 <div id="col-left">
250 <div class="col-wrap">
251
252 <?php if ( current_user_can('manage_categories') ) { ?>
253 <?php $category = (object) array(); $category->parent = 0; do_action('add_category_form_pre', $category); ?>
254
255 <div class="form-wrap">
256 <h3><?php _e('Add Category'); ?></h3>
257 <div id="ajax-response"></div>
258 <form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">
259 <input type="hidden" name="action" value="addcat" />
260 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-category'); ?>
261
262 <div class="form-field form-required">