###Code goes in the ced_ebay_bulk_import_to_store functin
/* Exclusion on the basis of predefined eBay Site Category */
if(!empty($itemDetails['Item']['PrimaryCategory']['CategoryID'])){
$cedCatInstance = CedGetCategories::get_instance( $siteID, $token );
$getCat = $cedCatInstance->_getCategoryTree( '12576' );
$search = $itemDetails['Item']['PrimaryCategory']['CategoryID'];
$found = array_filter($getCat['CategoryArray']['Category'],function($v,$k) use ($search){
return $v['CategoryID'] == $search;
}, ARRAY_FILTER_USE_BOTH);
if(is_array($found) && !empty($found)){
continue;
}
}