get_sidebar

最后更新于:2021-11-26 23:17:41

do_action( ‘get_sidebar’, string|null $name, array $args )

Fires before the sidebar template file is loaded.

参数

$name

(string|null)
Name of the specific sidebar file to use. Null for the default sidebar.

$args

(array)
Additional arguments passed to the sidebar template.

源文件

文件: gc-includes/general-template.php

View on Trac