aioseop_activate_pl

The All In One SEO Pack aioseop activate pl function.

Description

aioseop_activate_pl(); 

Usage

  1. if ( !function_exists( 'aioseop_activate_pl' ) ) { 
  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_activate_pl(); 
  7.  

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_activate_pl() { 
  2. if ( $aioseop_options = get_option( 'aioseop_options' ) ) { 
  3. $aioseop_options['aiosp_enabled'] = '0'; 
  4.  
  5. if ( empty( $aioseop_options['aiosp_posttypecolumns'] ) ) { 
  6. $aioseop_options['aiosp_posttypecolumns'] = array( 'post', 'page' ); 
  7.  
  8. update_option( 'aioseop_options', $aioseop_options );