Skip to content

[Resolved] Force supplemental roles for Editors in Network

Home Forums Developer Support Force supplemental roles for Editors in Network

This topic contains 9 replies, has 2 voices, and was last updated by 1 year, 8 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #22306 Reply

    We are trying to assign supplemental roles for Editor throughout our network.

    We have four supplemental roles to assign…
    Supplemental Roles > Term Management Roles:
    Event Category Manager
    Event Location Manager
    Media Category Manager
    Tag Manager

    // Press Permit: Assign supplemental roles for Editor
    function pp_assign_supplemental_roles_editor( $roles, $agent_type = ‘pp_group’ ) {
    $group = pp_get_group_by_name( ‘editor’, ‘pp_group’ );
    $roles = array();
    $roles[‘editor:post:manage_categories’] = array( $group->ID => true );
    if (is_plugin_active( ‘enhanced-media-library/enhanced-media-library.php’ ) ) {
    $roles[‘editor:post:manage_media_taxonomies’] = array( $group->ID => true );
    }
    if (is_plugin_active( ‘events-maker/events-maker.php’ ) ) {
    $roles[‘editor:post:manage_event_categories’] = array( $group->ID => true );
    $roles[‘editor:post:manage_event_locations’] = array( $group->ID => true );
    }
    ppc_assign_roles( $roles, ‘pp_group’ );
    }

    How far off am I?

    Thanks
    David

    #22307 Reply

    [ login required ]

    #22321 Reply

    [ login required ]

    #22324 Reply

    [ login required ]

    #22330 Reply

    [ login required ]

    #22341 Reply

    [ login required ]

    #22352 Reply

    [ login required ]

    #22353 Reply

    [ login required ]

    #22354 Reply

    [ login required ]

    #22356 Reply

    [ login required ]

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.