autoship_schedule_order_enabled()

(src > product-page.php) Returns the value of the _ autoship_schedule_order_enabled field for the supplied product.

Example

function autoship_schedule_order_enabled( WC_Product $product ) {

	$val = get_post_meta( $product->get_id(), '_autoship_schedule_order_enabled', true );
	if ( empty( $val ) ) {
		return 'no';
	}
	return $val;
}

autoship_schedule_process & order_enabled