aioseop_activate

The All In One SEO Pack aioseop activate function.

Description

aioseop_activate(); 

Usage

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

Defined (1)

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

/all_in_one_seo_pack.php  
  1. function aioseop_activate() { 
  2.  
  3. //Check if we just got activated. 
  4. global $aiosp_activation; 
  5. if ( AIOSEOPPRO ) { 
  6. global $aioseop_update_checker; 
  7. $aiosp_activation = true; 
  8.  
  9. if( ! is_network_admin() || !isset( $_GET['activate-multi'] ) ) { 
  10. set_transient( '_aioseop_activation_redirect', true, 30 ); // Sets 30 second transient for welcome screen redirect on activation. 
  11.  
  12. delete_user_meta( get_current_user_id(), 'aioseop_yst_detected_notice_dismissed' ); 
  13.  
  14. if ( AIOSEOPPRO ) { 
  15. $aioseop_update_checker->checkForUpdates();