Browse: Home / Snippets /

Bypass cron background enrollment in WooCommerce 1.7+

Contents


Snippet #

add_filter( 'learndash_woocommerce_products_count_for_silent_course_enrollment', function( $count ) {
  return 999; // Big number so it won't use background course enrollment
} );

Note: this requires the WooCommerce and LearnDash WooCommerce addon plugins