Skip to content

Instantly share code, notes, and snippets.

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 Pebblo/ed134f805973770e53b7506d50664b0a to your computer and use it in GitHub Desktop.
Save Pebblo/ed134f805973770e53b7506d50664b0a to your computer and use it in GitHub Desktop.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
// Change the ticket_row output to just output the event name.
add_filter('FHEE__EE_SPCO_Line_Item_Display_Strategy__item_row__name', 'tw_ee_filter_SPCO_Line_Item_Display_Strategy__item_row__name', 10, 2);
function tw_ee_filter_SPCO_Line_Item_Display_Strategy__item_row__name($line_item_name, $line_item) {
$related_object = $line_item->get_object();
if($related_object instanceof EE_Ticket){
return $related_object->get_event_name();
}
return $line_item_name;
}
// Remove the line item row description.
add_filter('FHEE__EE_SPCO_Line_Item_Display_Strategy__item_row__desc', '__return_empty_string()');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment