WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. jatin846
    Member
    Posted 2 years 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...

    https://wordpress.org/plugins/codepress-admin-columns/

  2. Jesper van Engelen
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    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,
    Jesper

  3. jatin846
    Member
    Posted 2 years 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