Get list of all registered sidebars

Posted by Prem Tiwari | Updated on

I looked in register_sidebar() and found that new sidebars are simply tacked onto an array:$wp_registered_sidebars and I guess that’s that. If they ever change the name of the variable, I guess I’d be screwed.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers