Created
April 9, 2020 19:00
-
-
Save joshfeck/eb5433f0549770e18d2d24fcb3b3ddb4 to your computer and use it in GitHub Desktop.
A simple and quick example of how to use filter hooks to customize the registration checkout display under the "Name and Description" column. Event Espresso 4.
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_Default_Line_Item_Display_Strategy__item_row__name', | |
function($name, $line_item) { | |
return $line_item->ticket_event_name() . '<br>'; | |
}, | |
10, | |
2 | |
); | |
add_filter( | |
'FHEE__EE_Default_Line_Item_Display_Strategy__item_row__desc', | |
function($desc, $line_item) { | |
return $line_item->name(); | |
}, | |
10, | |
2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment