bws_activate_with_default_options

The Bootstrap Widget Styling bws activate with default options function.

Description

bws_activate_with_default_options(); 

Usage

  1. if ( !function_exists( 'bws_activate_with_default_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bootstrap-widget-styling/bootstrap-widget-styling.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bws_activate_with_default_options(); 
  7.  

Defined (1)

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

/bootstrap-widget-styling.php  
  1. function bws_activate_with_default_options() { 
  2. $bws_plugin_options = array( 
  3. 'disable_pages_widget' => 0 ,  
  4. 'disable_search_widget' => 0 ,  
  5. 'disable_categories_widget' => 0 ,  
  6. 'disable_archives_widget' => 0 ,  
  7. ) ; 
  8. update_option( 'bws_plugin_options' , $bws_plugin_options ) ;