autoship_schedule_options_enabled

(src > product-options.php) Returns the value of the autoship_schedule_options_enabled field for the supplied product.

Example

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

Still need help? Contact Us Contact Us