Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created February 15, 2024 23:37
Show Gist options
  • Save Pebblo/f71c0bbf0eff421e4c87283690db46ae to your computer and use it in GitHub Desktop.
Save Pebblo/f71c0bbf0eff421e4c87283690db46ae to your computer and use it in GitHub Desktop.
Example of how to remove the site name from the gateway order descriptions
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_filter('FHEE__EE_Gateway___order_description', 'tw_ee_EE_Gateway___order_description', 10, 3);
function tw_ee_EE_Gateway___order_description( $desc, $gateway, $payment ) {
return sprintf(
esc_html__('Event Registrations for %1$s', "event_espresso"),
$payment->get_first_event_name()
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment