um_account_tab__notifications

The Ultimate Member um account tab notifications function.

Description

um_account_tab__notifications( $info ); 

Parameters (1)

0. $info
The info.

Usage

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

Defined (1)

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

/core/um-actions-account.php  
  1. function um_account_tab__notifications( $info ) { 
  2. global $ultimatemember; 
  3. extract( $info ); 
  4.  
  5. $output = $ultimatemember->account->get_tab_output('notifications'); 
  6.  
  7. if ( $output ) { ?> 
  8.  
  9. <div class="um-account-heading uimob340-hide uimob500-hide"><i class="<?php echo $icon; ?>"></i><?php echo $title; ?></div> 
  10.  
  11. <?php if ( class_exists('UM_Messaging_API') || class_exists('UM_Followers_API') ) { ?> 
  12. <div class="um-field"> 
  13. <div class="um-field-label"><label for=""><?php _e('Email me when', 'ultimatemember'); ?></label><div class="um-clear"></div></div> 
  14. </div> 
  15. <?php } ?> 
  16.  
  17. <?php echo $output; ?> 
  18.  
  19. <?php do_action('um_after_account_notifications'); ?> 
  20.  
  21. <div class="um-col-alt um-col-alt-b"> 
  22. <div class="um-left"><input type="submit" name="um_account_submit" id="um_account_submit" value="<?php _e('Update Notifications', 'ultimatemember'); ?>" class="um-button" /></div> 
  23. <div class="um-clear"></div> 
  24. </div> 
  25.  
  26. <?php 
  27.  
  28.