- if ( 'category' == $taxonomy )
- do_action('edit_category_form_fields', $tag);
- elseif ( 'link_category' == $taxonomy )
- do_action('edit_link_category_form_fields', $tag);
- else
- do_action('edit_tag_form_fields', $tag);
-
- do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy);
+ if ( 'category' == $taxonomy ) {
+ /**
+ * Fires after the Edit Category form fields are displayed.
+ *
+ * @since 2.9.0
+ * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
+ *
+ * @param object $tag Current category term object.
+ */
+ do_action( 'edit_category_form_fields', $tag );
+ } elseif ( 'link_category' == $taxonomy ) {
+ /**
+ * Fires after the Edit Link Category form fields are displayed.
+ *
+ * @since 2.9.0
+ * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
+ *
+ * @param object $tag Current link category term object.
+ */
+ do_action( 'edit_link_category_form_fields', $tag );
+ } else {
+ /**
+ * Fires after the Edit Tag form fields are displayed.
+ *
+ * @since 2.9.0
+ * @deprecated 3.0.0 Use {$taxonomy}_edit_form_fields instead.
+ *
+ * @param object $tag Current tag term object.
+ */
+ do_action( 'edit_tag_form_fields', $tag );
+ }
+ /**
+ * Fires after the Edit Term form fields are displayed.
+ *
+ * The dynamic portion of the hook name, `$taxonomy`, refers to
+ * the taxonomy slug.
+ *
+ * @since 3.0.0
+ *
+ * @param object $tag Current taxonomy term object.
+ * @param string $taxonomy Current taxonomy slug.
+ */
+ do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy );