Testimonial

  1. Home
  2. Docs
  3. Testimonial
  4. FAQs

FAQs

Q. Can I add capabilities to the editor user role to allow them to add/edit testimonials?

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 ); }