um_add_custom_message_to_menu

The Ultimate Member um add custom message to menu function.

Description

um_add_custom_message_to_menu( $items, $args ); 

Parameters (2)

0. $items
The items.
1. $args
The args.

Usage

  1. if ( !function_exists( 'um_add_custom_message_to_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/core/um-filters-navmenu.php'; 
  3.  
  4. // The items. 
  5. $items = null; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = um_add_custom_message_to_menu($items, $args); 
  12.  

Defined (1)

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

/core/um-filters-navmenu.php  
  1. function um_add_custom_message_to_menu( $items, $args ) { 
  2. global $ultimatemember; 
  3.  
  4. // this feature required logged in user 
  5. if ( !is_user_logged_in() ) 
  6. return $items; 
  7.  
  8. um_fetch_user( get_current_user_id() ); 
  9. $items = $ultimatemember->shortcodes->convert_user_tags( $items ); 
  10.  
  11. return $items;