_xt_get_review' ) ) { return; } if ( post_password_required( $post ) ) { return; } $post = get_post( $post ); if ( ! $post ) { return; } $review = tripp_xt_get_review( $post->ID ); if ( ! empty( $review ) ) { get_template_part( 'template-parts/single/review', '', $review ); } } /** * Appeands reviews to the post content. * * @param string $content The post content. * @return string The post content with reviews. */ function tripp_review_content( $content ) { if ( is_single() ) { ob_start(); tripp_review_data(); $content .= ob_get_clean(); } return $content; } add_filter( 'the_content', 'tripp_review_content' );