Browse: Home / Snippets /

Bypass cron background enrollment in WooCommerce 1.7+

Contents


Snippet #

Important: All snippets are provided as-is without support or guarantees. These snippets are provided as guidelines for advanced users looking to customize LearnDash. For any additional help or support with these snippets, we recommend reaching out to a LearnDash Expert.

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