register_sidebar_defaults WordPress Filter Hook

The register_sidebar_defaults hook allows you to change the default values for the fields in the sidebar registration form. This can be useful if you want to change the default values for all sidebars or if you want to change the default values for a specific sidebar.

apply_filters( 'register_sidebar_defaults', array $defaults ) #

Filters the sidebar default arguments.


Description

Top ↑

See also


Top ↑

Parameters

$defaults

(array)The default sidebar arguments.


Top ↑

Source

File: wp-includes/widgets.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.