monsterinsights_admin_header

Outputs the MonsterInsights Header.

Description

monsterinsights_admin_header(); 

Usage

  1. if ( !function_exists( 'monsterinsights_admin_header' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/admin/admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = monsterinsights_admin_header(); 
  7.  

Defined (1)

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

/includes/admin/admin.php  
  1. function monsterinsights_admin_header() { 
  2. // Get the base class object. 
  3. $base = MonsterInsights(); 
  4.  
  5. // Get the current screen, and check whether we're viewing a MonsterInsights screen; 
  6. $screen = get_current_screen();  
  7. if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) { 
  8. return; 
  9.  
  10. // If here, we're on an MonsterInsights screen, so output the header. 
  11. 'mascot' => plugins_url( 'assets/css/images/mascot.png', $base->file ),  
  12. 'logo' => plugins_url( 'assets/css/images/logo.png', $base->file ),  
  13. '2xmascot' => plugins_url( 'assets/css/images/mascot@2x.png', $base->file ),  
  14. '2xlogo' => plugins_url( 'assets/css/images/logo@2x.png', $base->file ),  
  15. ) );