Skip to content

Instantly share code, notes, and snippets.

@jmabbas
Created December 23, 2025 15:08
Show Gist options
  • Select an option

  • Save jmabbas/8c1e12a95ce4eff9151540fd480837db to your computer and use it in GitHub Desktop.

Select an option

Save jmabbas/8c1e12a95ce4eff9151540fd480837db to your computer and use it in GitHub Desktop.
GoTrek - Rating categories
add_filter( 'gotrek_hotel_rating_categories', 'custom_gotrek_hotel_rating_categories' );
function custom_gotrek_hotel_rating_categories( $rating_categories ) {
// Rename existing labels
$rating_categories['location'] = esc_html__( 'Area & Location', 'gotrek' );
$rating_categories['staff'] = esc_html__( 'Service Quality', 'gotrek' );
$rating_categories['cleanliness'] = esc_html__( 'Cleanliness', 'gotrek' );
$rating_categories['value for money'] = esc_html__( 'Value for money', 'gotrek' );
$rating_categories['comfort'] = esc_html__( 'Comfort', 'gotrek' );
$rating_categories['facilities'] = esc_html__( 'Facilities', 'gotrek' );
$rating_categories['free wifi'] = esc_html__( 'Free WiFi', 'gotrek' );
return $rating_categories;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment