um_add_submit_button_to_profile

The Ultimate Member um add submit button to profile function.

Description

um_add_submit_button_to_profile( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'um_add_submit_button_to_profile' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/core/um-actions-profile.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = um_add_submit_button_to_profile($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/core/um-actions-profile.php  
  1. function um_add_submit_button_to_profile($args) { 
  2. global $ultimatemember; 
  3.  
  4. // DO NOT add when reviewing user's details 
  5. if ( $ultimatemember->user->preview == true && is_admin() ) return; 
  6.  
  7. // only when editing 
  8. if ( $ultimatemember->fields->editing == false ) return; 
  9.  
  10. ?> 
  11.  
  12. <div class="um-col-alt"> 
  13.  
  14. <?php if ( isset($args['secondary_btn']) && $args['secondary_btn'] != 0 ) { ?> 
  15.  
  16. <div class="um-left um-half"><input type="submit" value="<?php echo $args['primary_btn_word']; ?>" class="um-button" /></div> 
  17. <div class="um-right um-half"><a href="<?php echo um_edit_my_profile_cancel_uri(); ?>" class="um-button um-alt"><?php echo $args['secondary_btn_word']; ?></a></div> 
  18.  
  19. <?php } else { ?> 
  20.  
  21. <div class="um-center"><input type="submit" value="<?php echo $args['primary_btn_word']; ?>" class="um-button" /></div> 
  22.  
  23. <?php } ?> 
  24.  
  25. <div class="um-clear"></div> 
  26.  
  27. </div> 
  28.  
  29. <?php