📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 13:49:27
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
user-registration
/
includes
/
admin
/
settings
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/user-registration/includes/admin/settings
🔄 Refresh
✏️
Editing: class-ur-settings-integration.php
Writable
<?php /** * UserRegistration General Settings * * @class UR_Settings_Integration * @version 1.0.0 * @package UserRegistration/Admin * @category Admin * @author WPEverest */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'UR_Settings_Integration ' ) ) : /** * UR_Settings_Integration Class */ class UR_Settings_Integration extends UR_Settings_Page { /** * Constructor. */ public function __construct() { $this->id = 'integration'; $this->label = __( 'Integration', 'user-registration' ); add_filter( 'user_registration_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); add_action( 'user_registration_settings_' . $this->id, array( $this, 'output' ) ); add_action( 'user_registration_settings_save_' . $this->id, array( $this, 'save' ) ); } /** * Get settings * * @return array */ public function get_settings() { $settings = apply_filters( 'user_registration_integration_settings', array( array( 'title' => __( 'Google reCaptcha Integation', 'user-registration' ), 'type' => 'title', 'desc' => '', 'id' => 'integration_options', ), array( 'title' => __( 'Version', 'user-registration' ), 'desc' => __( 'Select the google reCaptcha version', 'user-registration' ), 'id' => 'user_registration_integration_setting_recaptcha_version', 'default' => 'v2', 'type' => 'radio', 'class' => '', 'desc_tip' => true, 'options' => array( 'v2' => 'reCaptcha v2', 'v3' => 'reCaptcha v3', ), ), array( 'title' => __( 'Site Key (v2)', 'user-registration' ), 'desc' => sprintf( __( 'Get site key from google %1$s reCaptcha %2$s.', 'user-registration' ), '<a href="https://www.google.com/recaptcha" target="_blank">', '</a>' ), 'id' => 'user_registration_integration_setting_recaptcha_site_key', 'default' => '', 'type' => 'text', 'class' => '', 'css' => 'min-width: 350px;', 'desc_tip' => true, ), array( 'title' => __( 'Secret Key (v2)', 'user-registration' ), 'desc' => sprintf( __( 'Get secret key from google %1$s reCaptcha %2$s.', 'user-registration' ), '<a href="https://www.google.com/recaptcha" target="_blank">', '</a>' ), 'id' => 'user_registration_integration_setting_recaptcha_site_secret', 'default' => '', 'type' => 'text', 'class' => '', 'css' => 'min-width: 350px;', 'desc_tip' => true, ), array( 'title' => __( 'Site Key (v3)', 'user-registration' ), 'desc' => sprintf( __( 'Get site key from google %1$s reCaptcha %2$s.', 'user-registration' ), '<a href="https://www.google.com/recaptcha" target="_blank">', '</a>' ), 'id' => 'user_registration_integration_setting_recaptcha_site_key_v3', 'default' => '', 'type' => 'text', 'class' => '', 'css' => 'min-width: 350px;', 'desc_tip' => true, ), array( 'title' => __( 'Secret Key (v3)', 'user-registration' ), 'desc' => sprintf( __( 'Get secret key from google %1$s reCaptcha %2$s.', 'user-registration' ), '<a href="https://www.google.com/recaptcha" target="_blank">', '</a>' ), 'id' => 'user_registration_integration_setting_recaptcha_site_secret_v3', 'default' => '', 'type' => 'text', 'class' => '', 'css' => 'min-width: 350px;', 'desc_tip' => true, ), array( 'type' => 'sectionend', 'id' => 'general_options', ), ) ); return apply_filters( 'user_registration_get_integration_settings_' . $this->id, $settings ); } /** * Save settings */ public function save() { $settings = $this->get_settings(); UR_Admin_Settings::save_fields( $settings ); } } endif; return new UR_Settings_Integration();
💾 Save Changes
❌ Cancel