WordPress.org

Forums

User Role Editor
[resolved] Edit Widgets Capability (3 posts)

  1. kiyamia
    Member
    Posted 4 years ago #

    Is it possible to allow an Editor role to adjust widgets?

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 4 years ago #

    Role should have the 'edit_theme_options' capability to allow its owner work with widgets.
    At the begin of widgets.php we can see

    if ( ! current_user_can('edit_theme_options') )
    	wp_die( __( 'Cheatin’ uh?' ));

    But be aware that having such capability user can execute the arbitrary code on your site and get administrator rights easily. You should trust such user.

  3. kiyamia
    Member
    Posted 4 years ago #

    Thanks, that's good to know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic