Remove columns in admin listings page

This topic contains 2 replies, has 2 voices, and was last updated by  Fredrik 8 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #58536

    Fredrik
    Buyer
    Post count: 67

    Hi,

    I want to remove some columns that are not being used in the admin section of GD. I know there are the panel options to remove them but doing this for all the admin users is quite time consuming.

    I want to remove these columns (if possible of course).
    * Location (ID)
    * Category
    * Expiration
    * Author

    Maybe this can be accomplished via a filter?

    Thanks

    #58596

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Fredrik,

    Adding this to your child theme functions file will remove our columns.

    
    
    add_action('admin_panel_init', 'geodir_admin_list_columns_remove', 10);
    function geodir_admin_list_columns_remove(){
    if ($post_types = geodir_get_posttypes()) {
            foreach ($post_types as $post_type):
                remove_filter("manage_edit-{$post_type}_columns", 'geodir_edit_post_columns', 100);
            endforeach;
        }
    }

    Thanks,

    Stiofan

    #58859

    Fredrik
    Buyer
    Post count: 67

    Thank you! Works great.

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket