bws_add_closing_div_to_archives_widget

The Bootstrap Widget Styling bws add closing div to archives widget function.

Description

bws_add_closing_div_to_archives_widget( $params ); 

Parameters (1)

0. $params
The params.

Usage

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

Defined (1)

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

/includes/bws-widget-filters.php  
  1. function bws_add_closing_div_to_archives_widget( $params ) { 
  2. if ( isset( $params[ 0 ][ 'widget_name' ] ) && 'Archives' == $params[ 0 ][ 'widget_name' ] ) { 
  3. $params[ 0 ][ 'after_widget' ] = '</div>' . $params[ 0 ][ 'after_widget' ] ; 
  4. return $params ; 
  5. }