How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
Leave a Reply
You must be logged in to post a comment.
How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
You must be logged in to post a comment.
When no hook is available, you can always count on the old jQuery trickery…
Use CSS, I was implementing the JS solution and I didn’t like the delay, then I’ve remembered about this.
AFAIK, you can add new fields but you cannot remove the old ones! They are directly printed, and not stored in a variable to which a filter can be applied.
Ref:
wp-admin/edit-tags.php
, line no. 380.The most efficient way of ‘removing’ it is to apply CSS to the admin area, by using the ‘admin_head’ action hook.
NB: Update the
body.taxonomy-name
to the taxonomy name you wish to hide the description field for.There is not a hook to remove the markup from the document, hence hiding it with CSS.
I used the jQuery below to achieve this as well.
On the Edit Category/Taxonomy page,
.parent()
doesn’t remove the form field’s label. Here’s the jQuery for complete removal on both pages:I guess this would be a good answer