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_Chats_Settings::set_settings()
Set Contact Settings.
Return Return
(array) Chats settings.
- ''whatsapp_widget''
(array) Enable WhatsApp widget - ''whatsapp_phone''
(array) WhatsApp phone number - ''whatsapp_tooltip''
(array) WhatsApp tooltip - ''facebook_widget''
(array) Enable Facebook widget - ''facebook_account''
(array) Facebook page - ''facebook_tooltip''
(array) Facebook tooltip - ''viber_widget''
(array) Enable Viber widget - ''viber_phone''
(array) Viber phone number - ''viber_tooltip''
(array) Viber tooltip - ''skype_widget''
(array) Enable Skype widget - ''skype_call''
(array) Enable Skype call - ''skype_videocall''
(array) Enable Skype video call - ''skype_account''
(array) Skype account - ''skype_tooltip''
(array) Skype tooltip - ''telegram_widget''
(array) Enable Telegram widget - ''telegram_account''
(array) Telegram account - ''telegram_tooltip''
(array) Telegram tooltip
Source Source
File: calculator-chats-add-on/inc/MP_Addon_Chats_Settings.php
private function set_settings() {
$this->settings = array(
array(
'id' => 'whatsapp_widget',
'title' => __( 'Enable WhatsApp widget', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'whatsapp_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable WhatsApp widget', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'whatsapp_phone',
'title' => __( 'WhatsApp phone number', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'whatsapp_phone',
'placeholder' => '',
'default' => '',
'description' => __( 'WhatsApp phone number', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'whatsapp_tooltip',
'title' => __( 'WhatsApp tooltip', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'whatsapp_tooltip',
'placeholder' => '',
'default' => '',
'description' => __( 'WhatsApp tooltip', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'facebook_widget',
'title' => __( 'Enable Facebook widget', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'facebook_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Facebook widget', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'facebook_account',
'title' => __( 'Facebook page', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'facebook_account',
'placeholder' => '',
'default' => '',
'description' => __( 'Facebook page', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'facebook_tooltip',
'title' => __( 'Facebook tooltip', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'facebook_tooltip',
'placeholder' => '',
'default' => '',
'description' => __( 'Facebook tooltip', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'viber_widget',
'title' => __( 'Enable Viber widget', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'viber_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Viber widget', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'viber_phone',
'title' => __( 'Viber phone number', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'viber_phone',
'placeholder' => '',
'default' => '',
'description' => __( 'Viber phone number', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'viber_tooltip',
'title' => __( 'Viber tooltip', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'viber_tooltip',
'placeholder' => '',
'default' => '',
'description' => __( 'Viber tooltip', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'skype_widget',
'title' => __( 'Enable Skype widget', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'skype_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Skype widget', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'skype_call',
'title' => __( 'Enable Skype call', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'skype_call',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Skype call', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'skype_videocall',
'title' => __( 'Enable Skype video call', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'skype_videocall',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Skype video call', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'skype_account',
'title' => __( 'Skype account', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'skype_account',
'placeholder' => '',
'default' => '',
'description' => __( 'Skype account', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'skype_tooltip',
'title' => __( 'Skype tooltip', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'skype_tooltip',
'placeholder' => '',
'default' => '',
'description' => __( 'Skype tooltip', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'telegram_widget',
'title' => __( 'Enable Telegram widget', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'checkbox' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'telegram_widget',
'placeholder' => '',
'default' => '',
'description' => __( 'Enable Telegram widget', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'telegram_account',
'title' => __( 'Telegram account', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'telegram_account',
'placeholder' => '',
'default' => '',
'description' => __( 'Telegram account', 'CalculatorChatsAddon' ),
),
),
array(
'id' => 'telegram_tooltip',
'title' => __( 'Telegram tooltip', 'CalculatorChatsAddon' ),
'callback' => array( $this, 'input' ),
'args' => array(
'option_name' => MortgagePlatform::$prefix . 'contact',
'label_for' => 'telegram_tooltip',
'placeholder' => '',
'default' => '',
'description' => __( 'Telegram tooltip', 'CalculatorChatsAddon' ),
),
),
);
return $this->settings;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |