私はそのようなすべてのサイドバーをリストしています:
global $wp_registered_sidebars;
echo '<pre>';
print_r($wp_registered_sidebars); 
echo '</pre>'だから私は次のようなものを得ています:
Array
(
    [sidebar-1] => Array
        (
            [name] => Sidebar #1
            [id] => sidebar-1
            [description] => Sidebar number 1
            [before_widget] => 
            [after_widget] => 
            [before_title] => 
            [after_title] =>
        )
 (...)
)ただし、次のような選択リストとして表示したいと思います。
<select>
  <option value ="SIDEBAR-ID">SIDEBAR-NAME/option>
  <option value ="SIDEBAR-ID">SIDEBAR-NAME/option>
(...)
</select>Wordpress Codexはまったく役に立ちません。
ありがとうございました!
                  サイドバーの正確なリストはどこにあり、これはどのような目的に役立ちますか?
                
                
                  
                    —
                    カイザー