PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
dc-woocommerce-multi-vendor
/
admin
<?php class WCMp_Settings_Notices { /** * Holds the values to be used in the fields callbacks */ private $options; private $tab; /** * Start up */ public function __construct($tab) { $this->tab = $tab; $this->options = get_option("wcmp_{$this->tab}_settings_name"); $this->settings_page_init(); } /** * Register and add settings */ public function settings_page_init() { global $WCMp; $settings_tab_options = array("tab" => "{$this->tab}", "ref" => &$this, "sections" => array( "default_settings_section" => array("title" => '', // Section one "fields" => array( "is_notices_on" => array('title' => __('Notices Enable/Disable :', 'dc-woocommerce-multi-vendor'), 'type' => 'checkbox', 'id' => 'is_notices_on', 'label_for' => 'is_notices_on', 'name' => 'is_notices_on', 'value' => 'Enable') // Checkbox ), ) ) ); $WCMp->admin->settings->settings_field_init(apply_filters("settings_{$this->tab}_tab_options", $settings_tab_options)); } /** * Sanitize each setting field as needed * * @param array $input Contains all settings fields as array keys */ public function wcmp_notices_settings_sanitize($input) { global $WCMp; $new_input = array(); $hasError = false; if (isset($input['is_notices_on'])) $new_input['is_notices_on'] = sanitize_text_field($input['is_notices_on']); if (isset($input['notices'])) $new_input['notices'] = $input['notices']; if (!$hasError) { add_settings_error( "wcmp_{$this->tab}_settings_name", esc_attr("wcmp_{$this->tab}_settings_admin_updated"), __('Page Settings Updated', 'dc-woocommerce-multi-vendor'), 'updated' ); } return apply_filters("settings_{$this->tab}_tab_new_input", $new_input, $input); } }
[+]
..
[-] class-wcmp-settings-payment-stripe_gateway.php
[edit]
[-] class-wcmp-settings-capabilities-product.php
[edit]
[-] class-wcmp-settings-payment-paypal_payout.php
[edit]
[-] class-wcmp-settings-payment.php
[edit]
[-] class-wcmp-settings-vendor-general.php
[edit]
[-] class-wcmp-settings-vendor-registration.php
[edit]
[-] class-wcmp-settings-general.php
[edit]
[-] class-wcmp-settings-vendor-dashboard.php
[edit]
[-] class-wcmp-settings-general-policies.php
[edit]
[-] class-wcmp-settings-vendors.php
[edit]
[-] class-wcmp-admin-setup-wizard.php
[edit]
[-] class-wcmp-settings-general-customer_support_details.php
[edit]
[-] class-wcmp-settings-frontend.php
[edit]
[-] class-wcmp-settings-to_do_list.php
[edit]
[-] class-wcmp-settings-payment-paypal_masspay.php
[edit]
[-] class-wcmp-settings-capabilities-miscellaneous.php
[edit]
[-] class-wcmp-settings-capabilities-order.php
[edit]
[-] class-wcmp-settings.php
[edit]
[-] class-wcmp-settings-wcmp-addons.php
[edit]
[-] class-wcmp-settings-notices.php
[edit]