首页 WordPress函数大全 is_active_sidebar()

is_active_sidebar()

2020-05-02 / 3728阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_active_sidebar( string|int $index )

Determines whether a sidebar is in use.

描述

For more information> Conditional Tags article in the Theme Developer Handbook.

参数

$index

(string|int)
(Required)
Sidebar name, id or number to check.

返回

(bool) true if the sidebar is in use, false otherwise.

大家谈论
    我的见解