Redirect Clients After SMS Unsubscribe with wp_sms_number_unsubscribed_through_url

Updated on Jan 03, 2023

This action redirects clients to a specific page after they have unsubscribed from SMS notifications through a URL. It is a useful tool for managing your SMS subscribers and ensuring that they are able to easily unsubscribe if they wish to do so.

Just replace XXXXX with your desired path.

add_action( 'wp_sms_number_unsubscribed_through_url', function($number){

    wp_redirect( '/XXXXX' );
    exit;

} );