Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- for more information on adding this snippet to your site, see here
- http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- */
- /**
- * Changes the initial values/settings of a default ticket.
- * @param EM_Ticket $EM_Ticket
- */
- function my_em_modify_default_ticket($EM_Ticket) {
- if ( empty($EM_Ticket->ticket_id) ) {
- //you can modify any property in $EM_Ticket such as spaces or the ticket name, add or delete lines as necessary
- $EM_Ticket->ticket_spaces = 999; //ticket spaces
- $EM_Ticket->ticket_name = 'Custom Ticket Name'; //ticket name
- $EM_Ticket->ticket_description = 'Custom Ticket Description'; //ticket description
- $EM_Ticket->ticket_price = 100; //ticket price
- //etc.
- }
- }
- add_filter('em_ticket', 'my_em_modify_default_ticket', 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement