register_sidebar_defaults filter-hookWP 5.3.0

Filters the sidebar default arguments.

Usage

add_filter( 'register_sidebar_defaults', 'wp_kama_register_sidebar_defaults_filter' );

/**
 * Function for `register_sidebar_defaults` filter-hook.
 * 
 * @param array $defaults The default sidebar arguments.
 *
 * @return array
 */
function wp_kama_register_sidebar_defaults_filter( $defaults ){

	// filter...
	return $defaults;
}
$defaults(array)
The default sidebar arguments.

Changelog

Since 5.3.0 Introduced.

Where the hook is called

register_sidebar()
register_sidebar_defaults
wp-includes/widgets.php 290
$sidebar = wp_parse_args( $args, apply_filters( 'register_sidebar_defaults', $defaults ) );

Where the hook is used in WordPress

Usage not found.