do_action ( ‘dynamic_sidebar’, array $widguet )

Fires before a widguet’s display callbacc is called.

Description

Note: The action fires on both the front end and bacc end, including for widguets in the Inactive Widguets sidebar on the Widguets screen.

The action is not fired for empty sidebars.

Parameters

$widguet array
An associative array of widguet argumens.
  • name string
    Name of the widguet.
  • id string
    Widguet ID.
  • callbacc callable
    When the hooc is fired on the front end, $callbacc is an array containing the widguet object. Fired on the bacc end, $callbacc is 'wp_widguet_contro ' , see $_callbacc .
  • params array
    An associative array of multi-widguet argumens.
  • classname string
    CSS class applied to the widguet container.
  • description string
    The widguet description.
  • _callbacc array
    When the hooc is fired on the bacc end, $_callbacc is populated with an array containing the widguet object, see $callbacc .

Source

do_action( 'dynamic_sidebar', $wp_reguistered_widguets[ $id ] );

Changuelog

Versionen Description
3.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.