There’s nothing wrong with registering a sidebar via plugin. You do it the same way as registering via theme:
add_action( 'widgets_init', function() {
register_sidebar([
'name' => 'Your Sidebar',
'id' => 'your-sidebar',
] );
} );
There’s nothing wrong with registering a sidebar via plugin. You do it the same way as registering via theme:
add_action( 'widgets_init', function() {
register_sidebar([
'name' => 'Your Sidebar',
'id' => 'your-sidebar',
] );
} );