um_account_display_tabs_hook

The Ultimate Member um account display tabs hook function.

Description

um_account_display_tabs_hook( $args ); 

Parameters (1)

0. $args
The args.

Usage

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

Defined (1)

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

/core/um-actions-account.php  
  1. function um_account_display_tabs_hook( $args ) { 
  2. global $ultimatemember; 
  3. extract( $args ); 
  4.  
  5. $ultimatemember->account->tabs = apply_filters('um_account_page_default_tabs_hook', $tabs=array() ); 
  6.  
  7. ksort( $ultimatemember->account->tabs ); 
  8.  
  9. ?> 
  10.  
  11. <ul> 
  12.  
  13. <?php 
  14.  
  15. foreach( $ultimatemember->account->tabs as $k => $arr ) { 
  16. foreach( $arr as $id => $info ) { extract( $info ); 
  17.  
  18. $current_tab = $ultimatemember->account->current_tab; 
  19.  
  20. if ( isset($info['custom']) || um_get_option('account_tab_'.$id ) == 1 || $id == 'general' ) { ?> 
  21.  
  22. <li> 
  23. <a data-tab="<?php echo $id; ?>" href="<?php echo $ultimatemember->account->tab_link($id); ?>" class="um-account-link <?php if ( $id == $current_tab ) echo 'current'; ?>"> 
  24.  
  25. <?php if ( $ultimatemember->mobile->isMobile() ) { ?> 
  26. <span class="um-account-icontip uimob800-show" title="<?php echo $title; ?>"><i class="<?php echo $icon; ?>"></i></span> 
  27. <?php } else { ?> 
  28. <span class="um-account-icontip uimob800-show um-tip-w" title="<?php echo $title; ?>"><i class="<?php echo $icon; ?>"></i></span> 
  29. <?php } ?> 
  30.  
  31. <span class="um-account-icon uimob800-hide"><i class="<?php echo $icon; ?>"></i></span> 
  32. <span class="um-account-title uimob800-hide"><?php echo $title; ?></span> 
  33. <span class="um-account-arrow uimob800-hide"><?php echo ( is_rtl() ) ? '<i class="um-faicon-angle-left"></i>' : '<i class="um-faicon-angle-right"></i>'; ?></span> 
  34. </a> 
  35. </li> 
  36.  
  37. <?php 
  38.  
  39.  
  40. ?> 
  41.  
  42. </ul> 
  43.  
  44. <?php 
  45.