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_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