I have created a custom sidebar widgets using below code :
register_sidebar(array( 'id' => 'sidebar-widget-1', 'name' => 'Sidebar Widget 1', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ));
and it is showing in
Appearance -> Widgets and it is also showing content on frontend using
dynamic_sidebar('Sidebar Widget 1').
But I want to get content of this
register_sidebar by using its
id into a variable.
How to get sidebar content by using its