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_Calls_Settings::set_settings()

Set Call Settings.


Return Return

(array) Calls settings.

  • ''send_sms''
    (array) Allow SMS/Calls
  • ''account_sid''
    (array) Twilio ACCOUNT SID
  • ''auth_token''
    (array) Twilio AUTH TOKEN
  • ''twilio_phone''
    (array) Twilio Number Phone
  • ''call_to_admin''
    (array) Call to Admin
  • ''number_sms_to_admin''
    (array) Number Admin Phone for SMS


Top ↑

Source Source

File: calculator-calls-add-on/inc/MP_Addon_Calls_Settings.php

	private function set_settings() {

		$this->settings = array(
			array(
				'id'       => 'send_sms',
				'title'    => __( 'Allow SMS/Calls', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'sms',
					'label_for'   => 'send_sms',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Use Twilio.com', 'CalculatorsCallsAddon' ),
				),
			),
			array(
				'id'       => 'account_sid',
				'title'    => __( 'Twilio ACCOUNT SID', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'sms',
					'label_for'   => 'account_sid',
					'placeholder' => __( 'ACXXXXXXXXXXXXXXXXXXXXXX', 'CalculatorsCallsAddon' ),
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'auth_token',
				'title'    => __( 'Twilio AUTH TOKEN', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'sms',
					'label_for'   => 'auth_token',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'twilio_phone',
				'title'    => __( 'Twilio Number Phone', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'sms',
					'label_for'   => 'twilio_phone',
					'placeholder' => __( '+1XXXYYYZZZZ', 'CalculatorsCallsAddon' ),
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'call_to_admin',
				'title'    => __( 'Call to Admin', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'sms',
					'label_for'   => 'call_to_admin',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
			array(
				'id'       => 'number_sms_to_admin',
				'title'    => __( 'Number Admin Phone for SMS', 'CalculatorsCallsAddon' ),
				'callback' => array( $this, 'input' ),
				'args'     => array(
					'option_name' => MortgagePlatform::$prefix . 'sms',
					'label_for'   => 'number_sms_to_admin',
					'placeholder' => '',
					'default'     => '',
					'description' => '',
				),
			),
		);

		return $this->settings;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.