Function change_widget_args
Ensures that the args used for the widgets are the same across all widgets - from WP and custom.
Note: The params is a two-dim array that might look something like this: ( [0] => Array ( [name] => Sidebar #1 [id] => 'sidebar-1' [description] => Displays widget content in a column between the header/footer. [class] => [before_widget] => <div id="archives-2" class="widget widget_archive"> [after_widget] => </div> [before_title] => <h2> [after_title] => </h2> [widget_id] => archives-2 [widget_name] => Archives ) [1] => Array ( [number] => 2 ) )
Note: No change just yet - the defaults from WP work fine for now.
Parameters summary
array |
$params |
The widget params typically provided by WP |
Return value summary
array
|
The params with the updated before/after elements |