$tab ) : ?>
]*>(.*?)<\\/h2>/is', $tab_content, $tab_heading_matches );
$tab_headings = array_map( 'trim', array_map( 'wp_strip_all_tags', $tab_heading_matches[1] ) );
$has_title = in_array( trim( wp_strip_all_tags( $tab_title ) ), $tab_headings, true );
if ( ! $has_title ) {
echo '
' . wp_kses_post( $tab_title ) . '
';
}
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $tab_content;
?>