Title: add_category_form_pre
Published: April 25, 2014
Last modified: August 20, 2026

---

# do_action_deprecated( ‘add_category_form_pre’, object $arg )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#wp--skip-link--target)

This hook has been deprecated since 3.0.0. Use {@see ‘{$taxonomy}_pre_add_form’}
instead.

Fires before the Add Category form.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#parameters)󠁿

 `$arg`object

Optional arguments cast to an object.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#source)󠁿

    ```php
    do_action_deprecated( 'add_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/edit-tags.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/edit-tags.php#L398)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/edit-tags.php#L398-L398)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/add_category_form_pre/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Deprecated. Use ‘{$taxonomy_pre_add_form’} instead. | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fadd_category_form_pre%2F)
before being able to contribute a note or feedback.