yit_registered_sidebars

Retrieve all registered sidebars.

Description

(array) yit_registered_sidebars(); 

Returns (array)


Usage

  1. if ( !function_exists( 'yit_registered_sidebars' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-wishlist/plugin-fw/yit-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yit_registered_sidebars(); 
  7.  

Defined (1)

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

/plugin-fw/yit-functions.php  
  1. function yit_registered_sidebars () { 
  2. global $wp_registered_sidebars; 
  3.  
  4. $return = array (); 
  5.  
  6. if ( empty( $wp_registered_sidebars ) ) { 
  7. $return = array ( '' => '' ); 
  8.  
  9. foreach ( (array)$wp_registered_sidebars as $the_ ) { 
  10. $return[ $the_[ 'name' ] ] = $the_[ 'name' ]; 
  11.  
  12. ksort ( $return ); 
  13.  
  14. return $return;