WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Remove some columns only for editor user role

[Resolved] Remove some columns only for editor user role

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jesper van Engelen

    @engelen

    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

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Remove some columns only for editor user role’ is closed to new replies.