Skip to content

Commit

Permalink
Add - Action to render the opt page
Browse files Browse the repository at this point in the history
  • Loading branch information
MILAN88888 committed Jan 8, 2025
1 parent 0cfedca commit f3e5e40
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion includes/shortcodes/class-ur-shortcode-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ public static function output( $atts ) {
ur_add_notice( __( 'Your password has been reset successfully.', 'user-registration' ) );
delete_transient( 'ur_password_resetted_flag' );
}

$render_default = apply_filters( 'user_registration_login_render_default', true, $atts );

if ( isset( $wp->query_vars['ur-lost-password'] ) ) {
UR_Shortcode_My_Account::lost_password();
} else {
} else if( $render_default ) {
$recaptcha_enabled = ur_option_checked( 'user_registration_login_options_enable_recaptcha', false );
wp_enqueue_script( 'ur-common' );
wp_enqueue_script( 'user-registration' );
Expand All @@ -65,6 +68,11 @@ public static function output( $atts ) {
'redirect' => esc_url_raw( $redirect_url ),
)
);
} else {
/**
* Action to handles custom rendering logic for User Registration Login page.
*/
do_action( 'user_registration_login_custom_render' );
}
} else {
/**
Expand Down

0 comments on commit f3e5e40

Please sign in to comment.