Is there a way to get only the sidebars used on a particular page?

Using:

global $wp_registered_sidebars;
$widget_map = wp_get_sidebars_widgets();

Can get me all of the sidebars, but I’m interested in getting the sidebars only for a particular page. Something sounding like get_sidebars_by_page_id()

0

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *