customizer_widgets_section_args
Filters Customizer widget section arguments for a given sidebar.
Usage
add_filter( 'customizer_widgets_section_args', 'wp_kama_customizer_widgets_section_args_filter', 10, 3 ); /** * Function for `customizer_widgets_section_args` filter-hook. * * @param array $section_args Array of Customizer widget section arguments. * @param string $section_id Customizer section ID. * @param int|string $sidebar_id Sidebar ID. * * @return array */ function wp_kama_customizer_widgets_section_args_filter( $section_args, $section_id, $sidebar_id ){ // filter... return $section_args; }
- $section_args(array)
- Array of Customizer widget section arguments.
- $section_id(string)
- Customizer section ID.
- $sidebar_id(int|string)
- Sidebar ID.
Changelog
Since 3.9.0 | Introduced. |
Where the hook is called
customizer_widgets_section_args
wp-includes/class-wp-customize-widgets.php 475
$section_args = apply_filters( 'customizer_widgets_section_args', $section_args, $section_id, $sidebar_id );