mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
- fix default buttons text
- show default button text if filed value is empty
This commit is contained in:
@@ -490,6 +490,10 @@ function um_add_submit_button_to_register( $args ) {
|
||||
*/
|
||||
$primary_btn_word = apply_filters('um_register_form_button_one', $primary_btn_word, $args );
|
||||
|
||||
if ( ! isset( $primary_btn_word ) || $primary_btn_word == '' ){
|
||||
$primary_btn_word = UM()->options()->get( 'register_primary_btn_word' );
|
||||
}
|
||||
|
||||
$secondary_btn_word = $args['secondary_btn_word'];
|
||||
/**
|
||||
* UM hook
|
||||
@@ -515,6 +519,10 @@ function um_add_submit_button_to_register( $args ) {
|
||||
*/
|
||||
$secondary_btn_word = apply_filters( 'um_register_form_button_two', $secondary_btn_word, $args );
|
||||
|
||||
if ( ! isset( $secondary_btn_word ) || $secondary_btn_word == '' ){
|
||||
$secondary_btn_word = UM()->options()->get( 'register_secondary_btn_word' );
|
||||
}
|
||||
|
||||
$secondary_btn_url = ( isset( $args['secondary_btn_url'] ) && $args['secondary_btn_url'] ) ? $args['secondary_btn_url'] : um_get_core_page('login');
|
||||
/**
|
||||
* UM hook
|
||||
|
||||
Reference in New Issue
Block a user