$args { * @type bool $timed Whether the sentences carry timings. * @type array $paragraphs Each: `speaker` (name or ''), `start`, `sentences` (`start`, `end`, `text`). * @type string $text The plain text, when not timed. * @type bool $timestamps Whether to show a timestamp per paragraph. * } */ defined( 'ABSPATH' ) || exit; if ( empty( $args['timed'] ) ) { echo wp_kses_post( wpautop( esc_html( (string) ( $args['text'] ?? '' ) ) ) ); return; } foreach ( (array) $args['paragraphs'] as $vocalstack_paragraph ) : ?>