WordPress Snippets at WPcustoms

WooThemes Testimonials: Modify content to use excerpt

Modify the woothemes_testimonials_content filter and replace post_content with post_excerpt.


/**
 * Snippet Name: WooThemes Testimonials: Modify content to use excerpt
 * Snippet URL: http://www.wpcustoms.net/snippets/woothemes-testimonials-modify-content-to-use-excerpt/
 */
 function custom_testimonials_content( $content, $post ) {
  $content = $post->post_excerpt;
  return $content;
}
add_filter( 'woothemes_testimonials_content', 'custom_testimonials_content', 10, 2 );