Last active
October 8, 2019 20:20
-
-
Save sc0ttkclark/49405d66c6318f8dbac1d8ec5209d4ec to your computer and use it in GitHub Desktop.
Support HTML descriptions on Tickets for the Event Tickets plugin
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 | |
// Allow (safe) HTML for ticket descriptions. | |
add_action( 'tribe_tickets_ticket_add', function( $post_id, $ticket, $data ) { | |
$ticket->description = isset( $data['ticket_description'] ) ? wp_kses_post( $data['ticket_description'] ) : ''; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment