name : __( 'Tours', 'viator-collector' ); $vc_desc = term_description(); // Child city terms, ordered as on the Viator Structure screen. $vc_cities = array(); $vc_order = array_keys( VC_Structure::cities( VC_Structure::get() ) ); $vc_terms = get_terms( array( 'taxonomy' => 'viator_destination', 'parent' => $vc_term ? (int) $vc_term->term_id : 0, 'hide_empty' => false, ) ); foreach ( is_wp_error( $vc_terms ) ? array() : $vc_terms as $vc_city ) { $vc_pos = array_search( (string) get_term_meta( $vc_city->term_id, '_vc_viator_destination_id', true ), array_map( 'strval', $vc_order ), true ); $vc_cities[ $vc_pos === false ? PHP_INT_MAX - count( $vc_cities ) : $vc_pos ] = $vc_city; } ksort( $vc_cities ); $vc_after_hero = ''; if ( $vc_cities ) { ob_start(); ?>

$vc_city ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?>
$vc_name, /* translators: %s: region name. */ 'vc_subtitle' => $vc_desc ? wp_strip_all_tags( $vc_desc ) : sprintf( __( 'Explore the best tours in %s.', 'viator-collector' ), $vc_name ), 'vc_after_hero' => $vc_after_hero, 'vc_crumb' => array( array( 'label' => __( 'Tours', 'viator-collector' ), 'url' => get_post_type_archive_link( 'viator_tour' ), ), ), ) ); ?>