autoship_dissable_schedule_order_options()
(src/product-page.php) This function takes a WooCommerce product and returns the value of the _ autoship_dissable_schedule_order_options field for the supplied product.
Code:
function autoship_dissable_schedule_order_options( WC_Product $product ) {
$val = get_post_meta( $product->get_id(), '_autoship_dissable_schedule_order_options', true );
if ( empty( $val ) ) {
return 'no';
}
return $val;
}