Attendee_Registration::get_template_options()
Get the page template options.
Return
(array) Key value pair for available templates.
Source
File: src/Tickets_Plus/Admin/Tabs/Attendee_Registration.php
public function get_template_options() : array { $template_options = [ 'default' => esc_html_x( 'Default Page Template', 'dropdown option', 'event-tickets-plus' ), ]; if ( class_exists( 'Tribe__Events__Main' ) ) { $template_options['same'] = esc_html__( 'Same as Event Page Template', 'event-tickets-plus' ); } $templates = get_page_templates(); ksort( $templates ); foreach ( array_keys( $templates ) as $template ) { $template_options[ $templates[ $template ] ] = $template; } return $template_options; }
Changelog
Version | Description |
---|---|
5.5.1 | Introduced. |