is_active_sidebar()

Sponsored Link

指定されたサイドバーがアクティブ(使用中)であるかどうかを確認します。サイドバー(名前、id、ナンバーによて識別された)が使用された場合trueを返し、それ以外の関数はfalseを返します。この条件機能は、バージョン2.8から利用可能になりました。

Sponsored Link

原文(翻訳元)Check to see if a given sidebar is active (in use). Returns true if the sidebar (identified by name, id, or number) is in use, otherwise the function returns false. This conditional function became available with Version 2.8.

Sponsored Link