How do I filter the testimonials data before display processing

In your theme’s functions.php file, place code similar to the following for the configuration you need.

function my_testimonials_widget_data( $data, $atts ) {
if ( empty( $data ) ) return $data; foreach( $data as $key => $testimonial ) { // do something with the $testimonial entry // the keys below are those that are currently available // 'testimonial_extra' is the key in which you can put in your own custom content for display $testimonial = array( 'post_id' => …, 'testimonial_source' => …, 'testimonial_company' => …, 'testimonial_content' => …, 'testimonial_email' => …, 'testimonial_image' => …, 'testimonial_url' => …, 'testimonial_extra' => …, ); $data[ $key ] = $testimonial; } return $data; } add_filter( 'testimonials_widget_data', 'my_testimonials_widget_data',10 , 2 );

Do note that content truncation might still remove your appended content if you’re usingchar_limit.

Content of testimonial_extra is appended after the closing cite tag within the testimonial with CSS class extra.