gard_restrict_admin

The Google Adsense for Responsive Design - GARD gard restrict admin function.

Description

gard_restrict_admin(); 

Usage

  1. if ( !function_exists( 'gard_restrict_admin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-adsense-for-responsive-design-gard/index.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gard_restrict_admin(); 
  7.  

Defined (1)

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

/index.php  
  1. function gard_restrict_admin() { 
  2.  
  3. if ( ! current_user_can( 'manage_options' ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { 
  4. return; 
  5. }  
  6.