Admin Columns
[resolved] Remove some columns only for editor user role (3 posts)

  1. jatin846
    Posted 1 year ago #

    Hi Friends,
    I am facing two problem in WordPress admin

    1. Load custom CSS for wp-admin on user-role base (editor)
    2. Remove some columns as per user-role in Woo-Commerce on products page

    please reply if you can understood my problem...


  2. Jesper van Engelen
    Plugin Author

    Posted 1 year ago #


    The first problem doesn't seem specific to Admin Columns. In general, you can use current_user_can to check if a user has a capability, which can be used for roles as well (as every user has is own role name as a capability).

    You can do this in Admin Columns by calling cpac_set_storage_model_columns with your custom column settings. Admin Columns Pro allows you to export to PHP. You could set up the columns for each role, export to PHP, and use the proper exported code based on the current role.

    With kind regards,

  3. jatin846
    Posted 1 year ago #

    Okey thanks Jesper for your reply , But I got other solutions...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Admin Columns
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic