Settings

Class Settings


Source

File: src/Tickets_Plus/Emails/Settings.php

class Settings {

	/**
	 * The option key for the email footer credit.
	 *
	 * @since 5.6.6
	 *
	 * @var string
	 */
	public static $option_footer_credit = 'tec-tickets-emails-footer-credit';

	/**
	 * Add footer credit setting to main Tickets Emails settings page.
	 *
	 * @since 5.6.6
	 *
	 * @param array $fields Array of settings fields from Tickets Emails.
	 *
	 * @return array $fields Modified array of settings fields.
	 */
	public function add_footer_credit_setting( $fields ): array {

		$fields[ self::$option_footer_credit ] = [
			'type'            => 'toggle',
			'label'           => esc_html__( 'Footer Credit', 'event-tickets-plus' ),
			'tooltip'         => esc_html__( 'Include "Ticket powered by Event Tickets" in the footer', 'event-tickets-plus' ),
			'default'         => true,
			'validation_type' => 'boolean',
		];

		return $fields;
	}
}

Top ↑

Changelog

Changelog
Version Description
5.6.6 Introduced.

Top ↑

Methods