autoship_dissable_schedule_order_options

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

Example

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;
}

Still need help? Contact Us Contact Us