um_add_profile_fields

The Ultimate Member um add profile fields function.

Description

um_add_profile_fields( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'um_add_profile_fields' ) ) { 
  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_profile_fields($args); 
  9.  

Defined (1)

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

/core/um-actions-profile.php  
  1. function um_add_profile_fields($args) { 
  2. global $ultimatemember; 
  3.  
  4. if ( $ultimatemember->fields->editing == true ) { 
  5.  
  6. echo $ultimatemember->fields->display( 'profile', $args ); 
  7.  
  8. } else { 
  9.  
  10. $ultimatemember->fields->viewing = true; 
  11.  
  12. echo $ultimatemember->fields->display_view( 'profile', $args ); 
  13.  
  14.