Filters

How to Customize Username Format in WP SMS Pro for Mobile Registration

The WP SMS Pro allows users to register using their mobile numbers. By default, it creates usernames in the format phone_XXXX, where XXXX represents the sanitized mobile number. However, you may want to customize this format to fit your website’s needs better. For example, instead of phone_XXXX, you might prefer usernames like newuser_XXXX. This can […]

Read More Read more

Filter wp_sms_sms_otp_length

The wp_sms_sms_otp_lengthfilter allows developers to modify the length of the One-Time Passcode (OTP) generated by the createCode function. By default, the OTP length is passed as a parameter to the createCode function, but this filter can be used to dynamically adjust it before the OTP is generated Filter Hook: wp_sms_sms_otp_length This filter provides flexibility to […]

Read More Read more

Mobile Validity Mechanism and Hook Modification

In WP SMS, ensuring the validity of users’ mobile numbers is crucial to maintaining data integrity and ensuring successful SMS communication. This document outlines how to use the checkMobileNumberValidity function and modify its behaviour using hooks. Hook Modification You can modify the behaviour of the mobile validity check by using the wp_sms_mobile_number_validity filter. Here’s an […]

Read More Read more

Filter: wp_sms_single_dispatch_arguments

The wp_sms_single_dispatch_arguments filter allows developers to modify the arguments used before dispatching an SMS to a single number. This can be useful for customizing the SMS parameters, such as the recipient’s number, message content, or any other related argument. Parameters Example 1: Appending an Unsubscribe Link This example demonstrates how to append an unsubscribe link […]

Read More Read more

Filter wp_sms_api_message_content

This filter hook allows you to modify the content of a message before it is sent via the WordPress SMS API. You can customize the message text based on specific conditions or add additional content to the message body. Parameters Example Usage Example Callback Function Additional Examples Example 1: Adding a Timestamp to the Message […]

Read More Read more

Customize Scheduled Cronjob Interval with ‘wp_sms_pro_scheduled_interval’

Overview The WP SMS plugin includes a filter called “wp_sms_pro_scheduled_interval” that allows you to modify the interval of the scheduled cronjob. By default, the interval is set to 5 minutes, but the “wp_sms_pro_scheduled_interval” filter allows you to change it to 1 minute. This filter can be useful if you want to increase the frequency of […]

Read More Read more

Optimize SMS Sender’s Number with ‘wp_sms_from’

Overview The WP SMS plugin includes a filter called “wp_sms_from” that allows you to modify the sender’s phone number for SMS messages sent through the plugin. This filter can be useful if you want to customize the phone number that messages are sent from, or if you want to use a different phone number for […]

Read More Read more

Optimize SMS Recipients with ‘wp_sms_to’

Overview The WP SMS plugin includes a filter called “wp_sms_to” that allows you to modify the receiver’s phone number for SMS messages sent through the plugin. This filter can be useful if you want to customize the phone numbers that messages are sent to, or if you want to add additional recipients to the messages. […]

Read More Read more

Modify Text Messages with ‘wp_sms_msg’

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. […]

Read More Read more