- fix default buttons text

- show default button text if filed value is empty
This commit is contained in:
andrewshuba
2019-08-09 14:56:27 +03:00
parent d27101bced
commit 9374b7e2cb
4 changed files with 25 additions and 2 deletions
+8
View File
@@ -353,6 +353,10 @@ function um_add_submit_button_to_login( $args ) {
*/
$primary_btn_word = apply_filters('um_login_form_button_one', $args['primary_btn_word'], $args );
if ( ! isset( $primary_btn_word ) || $primary_btn_word == '' ){
$primary_btn_word = UM()->options()->get( 'login_primary_btn_word' );
}
/**
* UM hook
*
@@ -377,6 +381,10 @@ function um_add_submit_button_to_login( $args ) {
*/
$secondary_btn_word = apply_filters( 'um_login_form_button_two', $args['secondary_btn_word'], $args );
if ( ! isset( $secondary_btn_word ) || $secondary_btn_word == '' ){
$secondary_btn_word = UM()->options()->get( 'login_secondary_btn_word' );
}
$secondary_btn_url = ! empty( $args['secondary_btn_url'] ) ? $args['secondary_btn_url'] : um_get_core_page( 'register' );
/**
* UM hook