aioseop_handle_ignore_notice

The All In One SEO Pack aioseop handle ignore notice function.

Description

aioseop_handle_ignore_notice(); 

Usage

  1. if ( !function_exists( 'aioseop_handle_ignore_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = aioseop_handle_ignore_notice(); 
  7.  

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_handle_ignore_notice() { 
  2.  
  3. if ( ! empty( $_GET ) ) { 
  4. global $current_user; 
  5. $user_id = $current_user->ID; 
  6.  
  7. if ( ! empty( $_GET['aioseop_reset_notices'] ) ) { 
  8. delete_user_meta( $user_id, 'aioseop_ignore_notice' ); 
  9. if ( ! empty( $_GET['aioseop_ignore_notice'] ) ) { 
  10. add_user_meta( $user_id, 'aioseop_ignore_notice', $_GET['aioseop_ignore_notice'], false );