Sid Gifari File Manager
🏠 Root
/
home2
/
iuywvcmy
/
public_html
/
wp-content
/
plugins
/
everest-forms
/
includes
/
admin
/
settings
/
Editing: class-evf-settings-misc.php
<?php /** * EverestForms Misc Settings * * @package EverestForms\Admin * @version 1.9.8 */ defined( 'ABSPATH' ) || exit; if ( class_exists( 'EVF_Settings_Misc', false ) ) { return new EVF_Settings_Misc(); } /** * EVF_Settings_Misc. */ class EVF_Settings_Misc extends EVF_Settings_Page { /** * Constructor. */ public function __construct() { $this->id = 'misc'; $this->label = esc_html__( 'Misc', 'everest-forms' ); parent::__construct(); } /** * Get settings array. * * @return array */ public function get_settings() { $allow_usage_notice_msg = wp_kses( __( 'Help us improve the plugin\'s features by sharing <a href="https://docs.everestforms.net/docs/misc-settings-4/#2-toc-title" target="_blank">non-sensitive plugin data</a> with us.', 'everest-forms' ), array( 'a' => array( 'href' => array(), 'target' => array(), ), ) ); $settings = apply_filters( 'everest_forms_misc_settings', array( array( 'title' => esc_html__( 'Advanced Options', 'everest-forms' ), 'type' => 'title', 'desc' => '', 'id' => 'misc_options', ), array( 'title' => esc_html__( 'Uninstall Everest Forms', 'everest-forms' ), 'desc' => __( '<strong>Heads Up!</strong> Check this if you would like to remove ALL Everest Forms data upon plugin deletion.', 'everest-forms' ), 'id' => 'everest_forms_uninstall_option', 'default' => 'no', 'type' => 'toggle', 'desc_tip' => true, ), array( 'title' => esc_html__( 'Allow Usage Tracking', 'everest-forms' ), 'desc' => $allow_usage_notice_msg, 'id' => 'everest_forms_allow_usage_tracking', 'type' => 'toggle', 'default' => 'no', 'desc_tip' => true, ), array( 'title' => esc_html__( 'Load Fonts Locally', 'everest-forms' ), 'desc' => __( 'Load all the necessary fonts from local server for GDPR compliance.', 'everest-forms' ), 'id' => 'everest_forms_load_fonts_locally', 'type' => 'toggle', 'default' => 'no', 'desc_tip' => true, ), array( 'title' => esc_html__( 'Enable RestApi', 'everest-forms' ), 'desc' => __( 'Allow the other to use the rest api.', 'everest-forms' ), 'id' => 'everest_forms_enable_restapi', 'type' => 'toggle', 'default' => 'no', 'desc_tip' => true, ), array( 'title' => esc_html__( 'RestApi Key', 'everest-forms' ), 'desc' => __( 'List of api key.These are used to authenticate the request.', 'everest-forms' ), 'id' => 'everest_forms_restapi_keys', 'type' => 'restapi_key', 'default' => '', 'desc_tip' => true, 'css' => 'width=500px !important;', 'class' => 'evf-restapi-key', ), array( 'type' => 'sectionend', 'id' => 'misc_options', ), ) ); return apply_filters( 'everest_forms_get_settings_' . $this->id, $settings ); } /** * Save settings. */ public function save() { $settings = $this->get_settings(); EVF_Admin_Settings::save_fields( $settings ); } } return new EVF_Settings_Misc();
Save
Cancel