Skip to content

Instantly share code, notes, and snippets.

@kartikparmar
Created March 14, 2026 18:28
Show Gist options
  • Select an option

  • Save kartikparmar/e1606f240663f6b5c409645f9388c49d to your computer and use it in GitHub Desktop.

Select an option

Save kartikparmar/e1606f240663f6b5c409645f9388c49d to your computer and use it in GitHub Desktop.
Change ticket content to French
add_filter( 'wc_tickets_your_event_tickets', function( $string ) {
return 'Votre billet d\'événement';
} );
add_filter( 'wc_tickets_ticket_is_ready_content', function( $string ) {
return 'Vos billets sont prêts ! Vous pouvez les imprimer ou les afficher sur votre appareil mobile lors de l\'événement.';
} );
add_filter( 'wc_ticket_ticket_code', function( $string ) {
return 'Code du billet :';
} );
add_filter( 'wc_tickets_valid_until', function( $string ) {
return 'Valable jusqu\'au :';
} );
add_filter( 'wc_tickets_view_all_my_tickets', function( $string ) {
return 'Voir tous mes billets';
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment