Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created April 9, 2020 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/eb5433f0549770e18d2d24fcb3b3ddb4 to your computer and use it in GitHub Desktop.
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.
<?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