Hi improvedline,
I’ll look into providing an option for disabling widget previews more fully, but until then you’ll need some code like the following:
function my_admin_init(){
remove_meta_box( "ww-widget-preview", 'widget', 'side' );
}
add_action('admin_init', 'my_admin_init', 100 );
You can be more selective of the metabox removal by wrapping it in a condition of your choosing. For example, if you only wanted to remove the metabox for one widget, who’s post ID is 123:
function my_admin_init(){
if ( isset( $_GET['post'] ) && $_GET['post'] == '123' ) {
remove_meta_box( "ww-widget-preview", 'widget', 'side' );
}
}
add_action('admin_init', 'my_admin_init', 100 );
Hope this helps!
Jonathan
Hi Jonathan,
Thanks, it solve my problem indeed!