apply_filters( 'dynamic_sidebar_params', array $params )

Filters the parameters passed to a widget’s display callback.


Description

Note: The filter is evaluated on both the front end and back end, including for the Inactive Widgets sidebar on the Widgets screen.

See also


Parameters

$params

  • 'args'
    (array) An array of widget display arguments.<br>
    • 'name'
      (string) Name of the sidebar the widget is assigned to.<br>
    • 'id'
      (string) ID of the sidebar the widget is assigned to.<br>
    • 'description'
      (string) The sidebar description.<br>
    • 'class'
      (string) CSS class applied to the sidebar container.<br>
    • 'before_widget'
      (string) HTML markup to prepend to each widget in the sidebar.<br>
    • 'after_widget'
      (string) HTML markup to append to each widget in the sidebar.<br>
    • 'before_title'
      (string) HTML markup to prepend to the widget title when displayed.<br>
    • 'after_title'
      (string) HTML markup to append to the widget title when displayed.<br>
    • 'widget_id'
      (string) ID of the widget.<br>
    • 'widget_name'
      (string) Name of the widget.<br>
  • 'widget_args'
    (array) An array of multi-widget arguments.<br>
    • 'number'
      (int) Number increment used for multiples of the same widget.<br>


Source

File: wp-includes/widgets.php

View on GitHub



Changelog

Changelog
Version Description
2.5.0 Introduced.