Actions

Sends an Email Notification When an OTP is Generated

The send_otp_email_notification function sends an email notification when a One-Time Password (OTP) is generated. It retrieves user information based on a provided phone number, constructs an email message with the OTP details, and sends it to the user’s email address. Parameters Code Example Usage To use this function, ensure that the wp_sms_otp_generated action is triggered […]

Read More Read more

Integrate SMS with Other Services Using wp_sms_send

The wp_sms_send action is a useful tool for developers using the WP SMS plugin. This action will run after an SMS is sent, allowing you to perform additional actions or customizations based on the SMS that was just sent. Whether you want to track the success of your SMS campaigns or create custom integrations with […]

Read More Read more

Customize SMS Subscription with wp_sms_add_subscriber

This action allows you to perform custom actions when a new user subscribes to SMS notifications in WordPress. Use this action to trigger events or integrate with other services when a user opts in to receive SMS updates. Example: Send an SMS to a user when registering a new subscriber.

Read More Read more