gads_dash_setup

The Google Adsense Dashboard gads dash setup function.

Description

gads_dash_setup(); 

Usage

  1. if ( !function_exists( 'gads_dash_setup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-adsense-dashboard/gads_dash.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gads_dash_setup(); 
  7.  

Defined (1)

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

/gads_dash.php  
  1. function gads_dash_setup() { 
  2. if (current_user_can ( get_option ( 'gads_dash_access' ) )) { 
  3. wp_add_dashboard_widget ( 'gads-dash-widget', 'Earnings Dashboard for Google Adsense*', 'gads_dash_content', $control_callback = null );