WPDev.one
Core Function
View Source on Trac ↗

register_sidebar()

register_sidebar( mixed $args = array() )

Builds the definition for a single sidebar and returns the ID.

Parameters 1 required

Name / Type Description
mixed

(array | string) $args { Optional. Array or string of arguments for the sidebar being registered.

Required

Return Value

(string)
Sidebar ID added to $wp_registered_sidebars global.

Function Information

Since Version
2.2.0
Source File
wp-includes/widgets.php
Advertisement