Hi @franksysgfx
I hope you’re well today!
I’m not sure what redirect do you mean – can you explain it a bit more?
As for the “widget” (or rather a meta-box):
1. you can simply click on “Screen Options” tab in top-right corner of the post editor page and uncheck the “SmartCrawl” checkbox there.
This setting will be automatically applied for you for all posts of the same type. But other users may need to do the same (and also separately for other post types).
2. or if you want to permanently remove it “from everywhere” and “for everyone” you can use this code:
add_filter( 'wds-capabilities-seo_metabox', 'wpmu_sc_no_metabox', 99, 1 );
function wpmu_sc_no_metabox( $cap ) {
// IDs of users that are allowed to see metabox
$allowed_users = array( 0);
if ( ! in_array( get_current_user_id(), $allowed_users ) ) {
$cap = 'this_user_cannot_onpage_sc';
}
return $cap;
}
Note: this will only work with “classic editor”. If you want to make exceptions and allow some specific, selected users to still see it, you would need to replace 0 in this line
$allowed_users = array( 0);
with comma separated numerical IDs of users.
Kind regards,
Adam