Browse: Home / Snippets /

SamCart: Leave user enrolled in course if refund is processed

Contents


Snippet #

add_filter( 'learndash_samcart_process_notification_url', function( $process, data ) {
  if ( $data['type'] == 'Refund' ) {
    return false;
  }
  
  return $process;
}, 10, 2 );

Note: you must be using version 1.0.0.7 of the SamCart integration plugin, if you do not have this version, please contact LearnDash support for further assistance