Modify Text Messages with ‘wp_sms_msg’

Updated on Jan 09, 2023

Overview

The WP SMS plugin includes a filter called “wp_sms_msg” that allows you to modify the text messages that are sent through the plugin. This filter can be useful if you want to customize the messages that are sent to your customers or clients, or if you want to add additional information to the messages.

Example:

Add a signature to messages that are sent.

function wp_sms_modify_message($message) {
	$message = $message . ' /n Powerby: WP-SMS';
	
	return $message;
}
add_filter('wp_sms_msg', 'wp_sms_modify_message');
halloween