ID ); $episode_title = $schema['name']; if ( $schema['name'] === $post_title && $post->ID === get_the_ID() ) { $episode_title = ''; } /** * Filter: 'rank_math/schema/podcast_episode_title' - Allow changing the title of the podcast episode. Pass false to disable. * * @var string $post_title The title of the podcast episode. * * @param WP_Post $post The post object. * @param array $schema The schema array. */ $episode_title = apply_filters( 'rank_math/schema/podcast_episode_title', $episode_title, $post, $schema ); $season = ! empty( $schema['partOfSeason'] ) ? $schema['partOfSeason'] : []; $time_required = []; if ( isset( $schema['timeRequired'] ) && WordPress::get_formatted_duration( $schema['timeRequired'] ) ) { $duration = new \DateInterval( $schema['timeRequired'] ); $time_required[] = ! empty( $duration->h ) ? sprintf( esc_html__( '%d Hour', 'rank-math-pro' ), $duration->h ) : ''; $time_required[] = ! empty( $duration->i ) ? sprintf( esc_html__( '%d Min', 'rank-math-pro' ), $duration->i ) : ''; $time_required[] = ! empty( $duration->s ) ?sprintf( esc_html__( '%d Sec', 'rank-math-pro' ), $duration->s ) : ''; $time_required = array_filter( $time_required ); } ob_start(); ?>
'; if ( $image_id ) { $img = wp_get_attachment_image( $image_id, 'medium', false, [ 'class' => 'wp-image-' . $image_id ] ); } ?>

· : ·

·