Widgets API to check for active sidebars
|Reported by:||filosofo||Owned by:|
There should be a way to check if particular sidebar is in use, because a theme developer might want to change the markup in the presence of a sidebar actually being used.
My patch adds a "is_active_sidebar" function, to which one can pass a sidebar name, id, or number to return a boolean value reflecting whether that sidebar is actually in use.
Change History (8)
- Component changed from Administration to Widgets
- Owner anonymous deleted
- Keywords widgets sidebar api removed
- Milestone changed from 2.9 to 2.8