autoship_schedule_process_enabled()

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

Code

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