|
21 | 21 | * |
22 | 22 | * @param WP_Term $tag Current category term object. |
23 | 23 | */ |
24 | | - do_action( 'edit_category_form_pre', $tag ); |
| 24 | + do_action_deprecated( 'edit_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' ); |
25 | 25 | } elseif ( 'link_category' == $taxonomy ) { |
26 | 26 | /** |
27 | 27 | * Fires before the Edit Link Category form. |
|
31 | 31 | * |
32 | 32 | * @param WP_Term $tag Current link category term object. |
33 | 33 | */ |
34 | | - do_action( 'edit_link_category_form_pre', $tag ); |
| 34 | + do_action_deprecated( 'edit_link_category_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' ); |
35 | 35 | } else { |
36 | 36 | /** |
37 | 37 | * Fires before the Edit Tag form. |
|
41 | 41 | * |
42 | 42 | * @param WP_Term $tag Current tag term object. |
43 | 43 | */ |
44 | | - do_action( 'edit_tag_form_pre', $tag ); |
| 44 | + do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' ); |
45 | 45 | } |
46 | 46 |
|
47 | 47 | /** |
|
201 | 201 | * |
202 | 202 | * @param WP_Term $tag Current category term object. |
203 | 203 | */ |
204 | | - do_action( 'edit_category_form_fields', $tag ); |
| 204 | + do_action_deprecated( 'edit_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' ); |
205 | 205 | } elseif ( 'link_category' == $taxonomy ) { |
206 | 206 | /** |
207 | 207 | * Fires after the Edit Link Category form fields are displayed. |
|
211 | 211 | * |
212 | 212 | * @param WP_Term $tag Current link category term object. |
213 | 213 | */ |
214 | | - do_action( 'edit_link_category_form_fields', $tag ); |
| 214 | + do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' ); |
215 | 215 | } else { |
216 | 216 | /** |
217 | 217 | * Fires after the Edit Tag form fields are displayed. |
|
221 | 221 | * |
222 | 222 | * @param WP_Term $tag Current tag term object. |
223 | 223 | */ |
224 | | - do_action( 'edit_tag_form_fields', $tag ); |
| 224 | + do_action_deprecated( 'edit_tag_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' ); |
225 | 225 | } |
226 | 226 | /** |
227 | 227 | * Fires after the Edit Term form fields are displayed. |
|
241 | 241 | // Back compat hooks |
242 | 242 | if ( 'category' == $taxonomy ) { |
243 | 243 | /** This action is documented in wp-admin/edit-tags.php */ |
244 | | - do_action( 'edit_category_form', $tag ); |
| 244 | + do_action_deprecated( 'edit_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' ); |
245 | 245 | } elseif ( 'link_category' == $taxonomy ) { |
246 | 246 | /** This action is documented in wp-admin/edit-tags.php */ |
247 | | - do_action( 'edit_link_category_form', $tag ); |
| 247 | + do_action_deprecated( 'edit_link_category_form', array( $tag ), '3.0.0', '{$taxonomy}_add_form' ); |
248 | 248 | } else { |
249 | 249 | /** |
250 | 250 | * Fires at the end of the Edit Term form. |
|
254 | 254 | * |
255 | 255 | * @param WP_Term $tag Current taxonomy term object. |
256 | 256 | */ |
257 | | - do_action( 'edit_tag_form', $tag ); |
| 257 | + do_action_deprecated( 'edit_tag_form', array( $tag ), '3.0.0', '{$taxonomy}_edit_form' ); |
258 | 258 | } |
259 | 259 | /** |
260 | 260 | * Fires at the end of the Edit Term form for all taxonomies. |
|
0 commit comments