wphooks.info - add_category_form_pre

add_category_form_pre

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/edit-tags.php:
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
if ( current_user_can( $tax->cap->edit_terms ) ) {
	if ( 'category' == $taxonomy ) {
		/**
		 * Fires before the Add Category form.
		 *
		 * @since 2.1.0
		 * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
		 *
		 * @param object $arg Optional arguments cast to an object.
		 */
		do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) );
	} elseif ( 'link_category' == $taxonomy ) {
		/**
		 * Fires before the link category form.
		 *
		 * @since 2.3.0
		 * @deprecated 3.0.0 Use {$taxonomy}_pre_add_form instead.
		 *
		 * @param object $arg Optional arguments cast to an object.
		 */