← Back
Editing: template-tags.php
<?php /** * Template tags defined by the Seating Tickets feature. * * @since 5.16.0 */ use TEC\Tickets\Seating\Meta; if ( ! function_exists( 'tec_tickets_seating_enabled' ) ) { /** * Returns whether the post is using assigned seating. * * @since 5.16.0 * * @param int $post_id The post ID of the event. * * @return bool Whether the event is using assigned seating. */ function tec_tickets_seating_enabled( int $post_id ): bool { return ! empty( get_post_meta( $post_id, Meta::META_KEY_LAYOUT_ID, true ) ); } }
Save File
Cancel