Title: User Roles
Last modified: June 12, 2020

---

# User Roles

 *  Resolved [colmanc](https://wordpress.org/support/users/colmanc/)
 * (@colmanc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/user-roles-103/)
 * It seems as though only admins can create new testimonials. Can I add capabilities
   to the editor user role to allow them to add/edit testimonials too?

Viewing 1 replies (of 1 total)

 *  Plugin Author [ShapedPlugin LLC](https://wordpress.org/support/users/shapedplugin/)
 * (@shapedplugin)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/user-roles-103/#post-12990488)
 * Hi [@colmanc](https://wordpress.org/support/users/colmanc/)
 * Thanks for choosing our plugin.
 * Yes, you can add capabilities to the editor user role to allow them to add/edit
   testimonials easily using the following codes into your PHP files:
 *     ```
       add_filter( 'sp_testimonial_post_type_args', 'testimonial_show_to_editor' );
       function testimonial_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 );
       }
       ```
   
 * Let me know if you have done it fine.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘User Roles’ is closed to new replies.

 * ![](https://ps.w.org/testimonial-free/assets/icon-256x256.gif?rev=3502408)
 * [Real Testimonials – Testimonial Slider, Collect Customer Reviews and Video Testimonials](https://wordpress.org/plugins/testimonial-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/testimonial-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/testimonial-free/)
 * [Active Topics](https://wordpress.org/support/plugin/testimonial-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/testimonial-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/testimonial-free/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ShapedPlugin LLC](https://wordpress.org/support/users/shapedplugin/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/user-roles-103/#post-12990488)
 * Status: resolved