理想情况下,插件应该挂接到何处调用register_sidebar();
?
将init
做得好吗?
function my_plugin_register_sidebars() {
$args = array(
\'name\' => \'foo\'
\'description\' => \'bar\'
...
);
register_sidebar( $args );
}
add_action( \'**????**\', \'my_plugin_register_sidebar\' );