Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created January 8, 2020 02:51
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/e9cbd7b661c6de0e8c1b7c04cd981cb1 to your computer and use it in GitHub Desktop.
Save joshfeck/e9cbd7b661c6de0e8c1b7c04cd981cb1 to your computer and use it in GitHub Desktop.
Add inline CSS to ticket selector using PHP. Useful for customizing the ticket selector and embedded ticket selector. Event Espresso 4.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action(
'AHEE__ticket_selector_chart__template__before_ticket_selector',
'ee_add_ticket_selector_css'
);
function ee_add_ticket_selector_css() {
$custom_css =
".ticket-sales-expired, .ticket-pending {display:none;}";
echo '<style>' . $custom_css . '</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment