Forums

Remove description field in admin edit category page (2 posts)

  1. Jim Bob
    Member
    Posted 8 months ago #

    Can someone please tell me how to remove the description field from the admin edit category page..

    Image

  2. TomCornar
    Member
    Posted 8 months ago #

    Add this filter to hide the category column

    function removecategorydescrption($columns)
    {
     // only edit the columns on the current taxonomy
     if ( !isset($_GET['taxonomy']) || $_GET['taxonomy'] != 'category' )
     return $columns;
    
     // unset the description columns
     if ( $posts = $columns['description'] ){ unset($columns['description']); }
    
     return $columns;
    }
    add_filter('manage_edit-category_columns','removecategorydescrption');

    Thanks
    TomCornar

Reply

You must log in to post.

About this Topic

Tags

No tags yet.