I tried using this code in the child theme functions.php file and the schema code on the page source of a single product still showed as "Preorder", instead of "InStock". I modified the backorder condition to show "InStock" with no success.
Can someone provide the code necessary to have all items on backorder get schema code as "InStock" ?
Thanks.