jetpack_testimonials

The Jetpack by WordPress.com jetpack testimonials shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[jetpack_testimonials]'); 
  1. // variable usage 
  2. $result = do_shortcode('[jetpack_testimonials]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/modules/custom-post-types/testimonial.php  
  1. // Adjust CPT archive and custom taxonomies to obey CPT reading setting 
  2. add_filter( 'pre_get_posts', array( $this, 'query_reading_setting' ), 20 ); 
  3.  
  4. // Register [jetpack_testimonials] always and 
  5. // register [testimonials] if [testimonials] isn't already set 
  6. add_shortcode( 'jetpack_testimonials', array( $this, 'jetpack_testimonial_shortcode' ) ); 
  7.  
  8. if ( ! shortcode_exists( 'testimonials' ) ) { 
  9. add_shortcode( 'testimonials', array( $this, 'jetpack_testimonial_shortcode' ) ); 
  10.