Created
November 2, 2022 16:01
-
-
Save Pebblo/ed134f805973770e53b7506d50664b0a to your computer and use it in GitHub Desktop.
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 | |
// 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