responsive_mobile_admin_bar_site_menu

The Responsive Mobile responsive mobile admin bar site menu function.

Description

responsive_mobile_admin_bar_site_menu( $wp_admin_bar ); 

Parameters (1)

0. $wp_admin_bar
The wp admin bar.

Usage

  1. if ( !function_exists( 'responsive_mobile_admin_bar_site_menu' ) ) { 
  2. require_once '/includes/functions-theme-options-page.php'; 
  3.  
  4. // The wp admin bar. 
  5. $wp_admin_bar = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = responsive_mobile_admin_bar_site_menu($wp_admin_bar); 
  9.  

Defined (1)

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

/includes/functions-theme-options-page.php  
  1. function responsive_mobile_admin_bar_site_menu( $wp_admin_bar ) { 
  2. if ( ! current_user_can( 'edit_theme_options' ) ) { 
  3. return; 
  4.  
  5. if ( current_user_can( 'edit_theme_options' ) ) { 
  6. $wp_admin_bar->add_menu( array( 
  7. 'parent' => 'appearance',  
  8. 'id' => 'theme_options',  
  9. 'title' => __( 'Theme Options', 'responsive-mobile' ),  
  10. 'href' => admin_url( 'themes.php?page=theme_options' ) 
  11. ) );