Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions admin/settings/class-uwp-settings-general.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ public function get_settings( $current_section = '' ) {
'default' => '1',
'desc_tip' => true,
),
array(
'id' => 'register_form_button_title',
'type' => 'text',
'name' => __( 'Register Form Button Title', 'userswp' ),
'desc' => __( 'Enter the register form button title.', 'userswp' ),
'placeholder' => __( 'Create account', 'userswp' ),
'default' => '',
'desc_tip' => true,
'advanced' => true
),
array(
'id' => 'wp_register_redirect',
'name' => __( 'Redirect Admin Default Register Page', 'userswp' ),
Expand Down
4 changes: 3 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver

= 1.2.41 - 2025-08-TBD =
* Author actions not visible in listings tab when default tab is empty - FIXED
* Register form submit button is not translatable - FIXED
* Option added to set register form button custom title - ADDED

= 1.2.40 - 2025-08-14 =
* Assign default role to new user before user inserted - CHANGED
Expand Down Expand Up @@ -209,7 +211,7 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver
* Fixed default lightbox registration form with single form selection in "Lightbox Forms" setting - FIXED
* Fixed issue with the display of the Form Builder Fieldset field - FIXED
* [uwp_user_meta] add compatibility for GeoDirectory post - ADDED
* Single quote in slect field label, required/validation message shows unwanted backslash - FIXED
* Single quote in select field label, required/validation message shows unwanted backslash - FIXED
* Register form submit button is not spinning on AJAX submit - FIXED

= 1.2.27 - 2024-12-26 =
Expand Down
11 changes: 9 additions & 2 deletions templates/bootstrap/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
/**
* Register template (default)
*
* @ver 1.0.1
* @ver 1.2.41
*/

global $aui_bs5;

$css_class = ! empty( $args['css_class'] ) ? esc_attr( $args['css_class'] ) : 'border-0';
$form_title = ! empty( $args['form_title'] ) || $args['form_title']=='0' ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Register', 'userswp' );
$form_title = apply_filters( 'uwp_template_form_title', $form_title, 'register' );
$button_title = uwp_get_option( 'register_form_button_title' );
if ( $button_title ) {
$button_title = __( wp_unslash( $button_title ), 'userswp' );
} else {
$button_title = __( 'Create account', 'userswp' );
}
$button_title = apply_filters( 'uwp_register_form_button_title', $button_title );
do_action( 'uwp_template_before', 'register', $args ); ?>
<div class="row">
<div class="card mx-auto container-fluid p-0 <?php echo esc_attr( $css_class ); ?>" >
Expand Down Expand Up @@ -50,7 +57,7 @@
$button_args = apply_filters( 'uwp_register_button_args', array(
'type' => 'submit',
'class' => 'btn btn-primary btn-block text-uppercase uwp_register_submit',
'content' => esc_html__( 'Create Account', 'userswp' ),
'content' => esc_html( $button_title ),
'name' => 'uwp_register_submit',
), $args );

Expand Down
11 changes: 9 additions & 2 deletions templates/register.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<?php do_action( 'uwp_template_before', 'register' );
$css_class = ! empty( $args['css_class'] ) ? esc_attr( $args['css_class'] ) : '';
$form_title = ! empty( $args['form_title'] ) ? esc_attr__( $args['form_title'], 'userswp' ) : __( 'Register', 'userswp' );
$form_title = apply_filters( 'uwp_template_form_title', $form_title, 'register' );
$form_title = apply_filters( 'uwp_template_form_button_title', $form_title, 'register' );
$button_title = uwp_get_option( 'register_form_button_title' );
if ( $button_title ) {
$button_title = __( wp_unslash( $button_title ), 'userswp' );
} else {
$button_title = __( 'Create account', 'userswp' );
}
$button_title = apply_filters( 'uwp_register_form_title', $button_title );
?>
<div class="uwp-content-wrap <?php echo esc_attr( $css_class ); ?>">
<div class="uwp-registration">
Expand All @@ -19,7 +26,7 @@
$button_args = apply_filters( 'uwp_register_button_args', array(
'type' => 'submit',
'class' => 'uwp_register_submit',
'content' => esc_html__( 'Create Account', 'userswp' ),
'content' => esc_html( $button_title ),
'name' => 'uwp_register_submit',
), $args );

Expand Down