• Resolved Occam6

    (@occam6)


    I’m going to have someone else adding content to the carousel. They only have editor permissions, but apparently only admins are able to access WP Carousel. Is it possible to give access to editors?

Viewing 1 replies (of 1 total)
  • Plugin Author ShapedPlugin LLC

    (@shapedplugin)

    Hi,

    Thank you for using WordPress Carousel plugin. To show the Carousel generator to editor role user, please use the code below on the functions.php of your theme.

    
    add_filter('sp_wp_carousel_post_type_args', 'show_to_editor');
    function show_to_editor( $args ) {
    	unset( $args['show_ui'] );
    	$editor_compatible = array( 'show_ui' => current_user_can( 'edit_others_pages' ) ? true : false );
    	return array_merge( $args, $editor_compatible );
    }

    That’s it.

    Regards,
    The ShapedPlugin

Viewing 1 replies (of 1 total)
  • The topic ‘Allow editors access to plugin’ is closed to new replies.