- 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
+7
View File
@@ -1291,6 +1291,13 @@ function um_add_submit_button_to_profile( $args ) {
// only when editing
if ( UM()->fields()->editing == false ) {
return;
}
if ( ! isset( $args['primary_btn_word'] ) || $args['primary_btn_word'] == '' ){
$args['primary_btn_word'] = UM()->options()->get( 'profile_primary_btn_word' );
}
if ( ! isset( $args['secondary_btn_word'] ) || $args['secondary_btn_word'] == '' ){
$args['secondary_btn_word'] = UM()->options()->get( 'profile_secondary_btn_word' );
} ?>
<div class="um-col-alt">