Created
February 15, 2024 23:37
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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