bws_settings_setup

The Bootstrap Widget Styling bws settings setup function.

Description

bws_settings_setup(); 

Usage

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

Defined (1)

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

/includes/bws-options.php  
  1. function bws_settings_setup() { 
  2. $widgets_to_add_to_settings_page = array( 'categories' , 'pages' , 'search' , 'archives' ) ; 
  3.  
  4. BWS_Settings_Page::init( $widgets_to_add_to_settings_page ) ; 
  5. register_setting( 'bws_plugin_options' , 'bws_plugin_options' , array( 'BWS_Settings_Page' , 'validate_options' ) ) ; 
  6. add_settings_section( 'bws_plugin_primary' , __( 'Settings' , 'bootstrap-widget-styling' ) ,  
  7. array( 'BWS_Settings_Page' , 'plugin_section_text' ), 'bws_options_page' ) ; 
  8. BWS_Settings_Fields::add_fields_for_widget_types( $widgets_to_add_to_settings_page ) ;