Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

MP_Addon_Calendar_Settings::set_settings()

Set Call Settings.


Return Return

(array) Calendar settings.

  • ''calendar_widget''
    (array) Enable Calendar Widget
  • ''calendar_tooltip''
    (array) Calendar tooltip


Top ↑

Source Source

File: calculator-calendar-add-on/inc/MP_Addon_Calendar_Settings.php

	private function set_settings() {

		$this->settings = array(
			array(
				'id'       => 'calendar_widget',
				'title'    => __( 'Enable Calendar Widget', 'CalculatorsCalendarAddon' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'calendar_widget',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Enable Calendar Widget on the site page', 'CalculatorsCalendarAddon' ),
				),
			),
			array(
				'id'       => 'calendar_tooltip',
				'title'    => __( 'Calendar tooltip', 'CalculatorsCalendarAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'contact',
					'label_for'   => 'calendar_tooltip',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Calendar tooltip', 'CalculatorsCalendarAddon' ),
				),
			),
		);

		return $this->settings;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.