Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mathieu Viet

    (@imath)

    All users can submit an idea from the front office. In the Admin part, the administrator can manage votes for instance, and it could be problematic to let all users access to it..

    But if you really want this to happen, you can use this code. Please note, i don’t recommand it, as a result, i will not provide any support if this breaks some functionalities of the plugin:

    function allow_admin_access( $caps, $cap, $user_id, $args = array() ) {
    	if ( is_admin() && 'edit_ideas' == $cap ) {
    		// Use WordPress Default cap (contributor/author/editor/Admin)
    		$caps = array( 'edit_posts' );
    	}
    
    	return $caps;
    }
    add_filter( 'wp_idea_stream_map_meta_caps', 'allow_admin_access', 10, 4 );
    Thread Starter af3

    (@af3)

    imath — thank you so much !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add back Add menu for contributor's role’ is closed to new replies.