Created
January 8, 2020 02:51
-
-
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.
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_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