customize_value_old_sidebars_widgets_data
The WordPress Core customize value old sidebars widgets data hook.
Description
Parameters (1)
- 0. $array (callback) =>
array( $this, 'filter_customize_value_old_sidebars_widgets_data' )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'customize_value_old_sidebars_widgets_data', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the customize_value_old_sidebars_widgets_data callback
- function filter_customize_value_old_sidebars_widgets_data( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'customize_value_old_sidebars_widgets_data', 'filter_customize_value_old_sidebars_widgets_data', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'customize_value_old_sidebars_widgets_data', 'filter_customize_value_old_sidebars_widgets_data', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/class-wp-customize-widgets.php
- add_filter( 'customize_value_old_sidebars_widgets_data', array( $this, 'filter_customize_value_old_sidebars_widgets_data' ) );