add_filter( 'wpo_skip_add_to_cart_item', function ( $skip, $item ) {
  return isset($item['woosb_parent_id']) ? true : $skip;
}, 10, 2 );

add_filter( 'wpo_is_child_cart_item', function ( $child, $item ) {
  return isset($item['woosb_parent_id']) ? true : $child;
}, 10, 2 );

add_filter( 'wpo_search_product_types', function ( $types ) {
  $types[] = "woosb";
  return $types;
} );

add_filter('wpo_add_configured_products_skip_item', function ($skip, $item_data) {
  return isset($item_data['woosb_parent_key']) ? true : $skip;
}, 10, 2);

add_filter('wpo_children_cart_item', function ($children, $item) {
  return isset($item['woosb_keys']) ? $item['woosb_keys'] : $children;
}, 10, 2);

add_filter('wpo_cart_item_is_price_readonly', function ($is_readonly, $item) {
  return isset($item['woosb_keys']) ? true : $is_readonly;
}, 10, 2);