Register Sidebars

Register custom Sidebars for Appearances -> Widgets with this file ./core/config/sidebars.php


Parameters

ParamTypeDescriptionRequired
$namestringDefault: $name
$idboolDefault: $id
$descriptionstringDefault: ' '
$classboolDefault: widget-$id
$before_widgetstringDefault: <div id="%1$s" class="side-section %2$s">
$after_widgetboolDefault: </div>
$before_titlestringDefault: <h6 class='side-title'>
$after_titleboolDefault: </h6>

Somente o parâmetro name é obrigatório.


Example of use

return [
[
'name' => 'Sidebar',
],
[
'name' => 'My Other Sidebar',
'description' => 'This is my other sidebar',
'class' => "my-custom-class widget-$id"
],
];