public function ajax_product_has_children() { $id = $_REQUEST['product_id']; if (FUE_Woocommerce::product_has_children($id)) { echo 1; } else { echo 0; } exit; }