Ultimate WP SMS Shortcodes Guide

Phillip Dane

Last Update setahun yang lalu

Ultimate WP SMS provides versatile shortcodes that allow you to build frontend forms for user subscription, contact forms, group messaging, and opt-out functionality.

There are 4 shortcode types, and each requires the type attribute to be defined for it to function correctly.

πŸ“₯ 1. Subscribe User to Group(s)

Use this shortcode to display a subscription form and add users to one or multiple groups.

Shortcode Example:[uws_form type='subscribe' group_ids='2,3' multitype='multiselect']

Available Parameters:

  • group_id – Show subscribe form for a single group.

  • group_ids – Show multiple group options (comma-separated IDs).

  • multitype – Display group selection as checkbox, select, or multiselect.

  • name – Show name field in the form (yes or no).

πŸ“© 2. Contact Us Form

Use this shortcode to create a contact form that sends a message to an admin group (as configured in settings).

Shortcode Example:[uws_form type='contact_us']

Available Parameters:

  • group_id – Optional. Adds the user to a specific group.

  • open_button_text – Text on the button that triggers the popup.

  • title_text – Title displayed on the form.

  • name_text – Label for the name field.

  • number_text – Label for the phone number field.

  • message_text – Label for the message field.

  • send_button_text – Label for the submit button.

  • popup – Display as popup or inline (yes or no).

🚫 3. Opt-Out from Group(s)

Allow users to unsubscribe themselves from one or multiple groups.


Shortcode Example:

[uws_form type='opt_out']

Available Parameters:

  • title_text – Title shown at the top of the form.

  • enter_number_text – Label for the phone number input.

  • enter_number_button – Text for the button to fetch subscribed groups.

  • current_groups_text – Label above the group list.

  • unsubscribe_button – Text for the final unsubscribe button.

πŸ“€ 4. Send Message to Group or Selected Members

This shortcode allows sending a custom message to an entire group or selected members.


Shortcode Example:

[uws_form type='group_send' group_id='2' member_select='yes']

Available Parameters:

  • group_id – Comma-separated list of group IDs to target.

  • member_select – Allow member selection before sending (yes or no).

  • form_title – Title shown above the form.

  • member_title – Label for the member selector.

  • send_button_text – Text for the send button.

  • message_text_title – Label above the message input box.

  • send_response – Message shown after sending.

  • message_content – Default pre-filled message content.

  • message_type – Type of message to send: uws-sms or uws-call.

πŸ“ Notes:
  • All shortcodes must include the type attribute.

  • Use within posts, pages, or shortcode-compatible widgets.

  • Group IDs should correspond to your existing UWS groups.

Was this article helpful?

0 out of 0 liked this article