wpseek.com
A WordPress-centric search engine for devs and theme authors



get_sidebar › WordPress Action Hooks

Since5.5.0
Deprecatedn/a
do_action( 'get_sidebar', $name, $args )
Parameters: (2)
  • (string|null) $name Name of the specific sidebar file to use. Null for the default sidebar.
    Required: Yes
  • (array) $args Additional arguments passed to the sidebar template.
    Required: Yes
Defined at:
Codex:

Fires before the sidebar template file is loaded.





Source

do_action( 'get_sidebar', $name, $args );