autoship_schedule_process_enabled

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

Example

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

autoship_schedule_process & order_enabled

Still need help? Contact Us Contact Us