Home / APIs / _wp_sidebars_changed() – Handle sidebars config after theme change

Description

Handle sidebars config after theme change

Usage

_wp_sidebars_changed();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/widgets.php
Lines: 1 to 8 of 8

function _wp_sidebars_changed() {
  global $sidebars_widgets;

  if ( ! is_array( $sidebars_widgets ) )
    $sidebars_widgets = wp_get_sidebars_widgets();

  retrieve_widgets(true);
}
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 3 of 3

      • _wp_sidebars_changed() – Handle sidebars config after theme change
      • retrieve_widgets() – Look for "lost" widgets, this has to run at least on each theme change.
      • wp_get_sidebars_widgets() – Retrieve full list of sidebars and their widget instance IDs.

      Call hooks

      Function name: _wp_sidebars_changed
      Plugin ref: WordPress
      Version: 4.9
      Sourcefile: wp-includes/widgets.php
      File ref: wp-includes/widgets.php
      API type: private
      Deprecated?: No
      API Letters: _,C,S,W

      Published: 12th March 2017 | Last updated: 12th March 2017

      Information

      Function name: _wp_sidebars_changed
      Plugin ref: WordPress
      Version: 4.9
      Sourcefile: wp-includes/widgets.php
      File ref: wp-includes/widgets.php
      API type: private
      Deprecated?: No
      API Letters: _,C,S,W

      • Plugins
      • Themes
      • Shortcodes
      • APIs
      • Files
      • Hooks
      • Classes
      • Sites
      • Sitemap
      • Blog
      WooCommerce a2z WooCommerce a2z
      WooCommerce

      Site:  woocommerce.wp-a2z.org
      © Copyright WooCommerce a2z 2014-2018. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins