內容簡介
此外掛可讓您在小工具管理頁面中連結到特定側邊欄並自動開啟它們。預設情況下,當您進入小工具管理頁面時,所有的側邊欄都是關閉狀態。
<a href="<?php echo admin_url( 'widgets.php' ) .'?sidebar=aside'; ?>">新增小工具</a>
您需要知道欲開啟的側邊欄的 ID。若要開啟多個側邊欄,可使用逗號將它們分開。
<a href="<?php echo admin_url( 'widgets.php' ) .'?sidebar=aside,body_open,before_the_loop'; ?>">新增小工具</a>
或是使用add_widgets_link()函數:
<?php echo waf_widgets_link( 'aside', '新增小工具至Aside' ); ?> <?php echo waf_widgets_link( 'aside,body_open,before_the_loop' ); ?>
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds the ability to link to specific sidebars in the widgets admin page and have them open up automatically. In addition, by default when visiting the widgets admin page, none of the sidebars are open.
Add Widgets
You’ll need to know the IDs of the sidebars you’d like to have opened. For multiple sidebars, simply separate them with commas.
Add Widgets
Alternatively, you can use the add_widgets_link() function:
