UAM – Apply on this blog

This snippet for the User Access Manager Broadcast add-on disables the add-on from working on specific blogs.

Add or remove blog IDs as necessary.


function bc_broadcast_user_access_mananger_apply_on_this_blog( $apply )
{
 if ( in_array( get_current_blog_id(), [
  3,
  4,
  5,
  ] )
  return false;
 return $apply;
}
add_filter( 'broadcast_user_access_mananger_apply_on_this_blog', 'bc_broadcast_user_access_mananger_apply_on_this_blog' );