mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 07:04:06 +09:00
- fix default buttons text
- show default button text if filed value is empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user