wccs_activation_hook

The Woocommerce Category based sitemaps wccs activation hook function.

Description

wccs_activation_hook(); 

Usage

  1. if ( !function_exists( 'wccs_activation_hook' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-category-based-sitemaps/index.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wccs_activation_hook(); 
  7.  

Defined (1)

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

/index.php  
  1. function wccs_activation_hook() { 
  2.  
  3.  
  4. if (!get_option( 'wccs_sitemap_url' )) { 
  5. add_option( 'wccs_sitemap_url', 'Not generated yet', '', 'yes' ); 
  6. if (!get_option( 'wccs_sitemap_generation_time' )) { 
  7. add_option( 'wccs_sitemap_generation_time', 'Never', '', 'yes' ); 
  8. if (!get_option( 'wccs_ping_time' )) { 
  9. add_option( 'wccs_ping_time', 'Never', '', 'yes' );