responsive_mobile_ignore_notice

Ignore admin notice.

Description

responsive_mobile_ignore_notice(); 

Usage

  1. if ( !function_exists( 'responsive_mobile_ignore_notice' ) ) { 
  2. require_once '/core/functions-install.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = responsive_mobile_ignore_notice(); 
  7.  

Defined (1)

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

/core/functions-install.php  
  1. function responsive_mobile_ignore_notice() { 
  2. $current_user = wp_get_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[ 'responsive_mobile_ignore_notice'] ) && 'true' == $_GET[ 'responsive_mobile_ignore_notice'] ) { 
  6. update_user_meta( $user_id, 'responsive_mobile_ignore_notice', 'true' ); 
  7. if ( isset( $_GET[ 'responsive_mobile_ignore_notice'] ) && 'false' == $_GET[ 'responsive_mobile_ignore_notice'] ) { 
  8. delete_user_meta( $user_id, 'responsive_mobile_ignore_notice' );