Support » Plugin: Quick Page/Post Redirect Plugin » Change the User Role Access

  • Hi there,

    I’d like to give the Editor user role in WordPress access to the Quick Page/Post Redirect options and settings, instead of only Administrator access. I know I can use the WordPress add_cap() function ( to extend this, but I need to know what to target. Here’s what I have so far:

    $redirect = ?
    function grant_qppredirect_editor_access() {
    $role = get_role( ‘editor’ );
    $role->add_cap( ‘$redirect’ );
    add_action( ‘admin_init’, ‘grant_qppredirect_editor_access’ );

    Any help would be greatly appreciated.

    Thank you!

Viewing 1 replies (of 1 total)
  • I’d like to know how to do this too (actually for a Shop Manager – with WooCommerce installed).
    (I’m not a code geek, but happy to copy and paste into custom functions, so would really appreciate a little hand holding too!)

Viewing 1 replies (of 1 total)
  • The topic ‘Change the User Role Access’ is closed to new replies.