gpr_nag_ignore

The Google Places Reviews gpr nag ignore function.

Description

gpr_nag_ignore(); 

Usage

  1. if ( !function_exists( 'gpr_nag_ignore' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-places-reviews/inc/activation-banner.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gpr_nag_ignore(); 
  7.  

Defined (1)

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

/inc/activation-banner.php  
  1. function gpr_nag_ignore() { 
  2. global $current_user; 
  3. $user_id = $current_user->ID; 
  4. /** If user clicks to ignore the notice, add that to their user meta */ 
  5. if ( isset( $_GET['gpr_nag_ignore'] ) && '0' == $_GET['gpr_nag_ignore'] ) { 
  6. add_user_meta( $user_id, 'gpr_activation_ignore_notice', 'true', true );