Title: Select all groups with a button or code
Last modified: January 13, 2024

---

# Select all groups with a button or code

 *  Resolved [snas35](https://wordpress.org/support/users/snas35/)
 * (@snas35)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/select-all-groups-with-a-button-or-code/)
 * Hi,
 * On Send SMS page I want to add a buttom to auto select all wp roles to send SMS.
   Is any way to add a code/js to do this?
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/select-all-groups-with-a-button-or-code/#post-17340622)
 * Hi,
 * To add a ‘Select All’ button on your Send SMS page, you can use the ‘[WP Custom Admin Interface](https://de.wordpress.org/plugins/wp-custom-admin-interface/)‘
   plugin to insert a custom JavaScript code. This code will create a button that,
   when clicked, automatically selects all WordPress roles for SMS.
 * It’s a straightforward solution that involves a bit of coding.
 * Best

Viewing 1 replies (of 1 total)

The topic ‘Select all groups with a button or code’ is closed to new replies.

 * ![](https://ps.w.org/wp-sms/assets/icon.svg?rev=3477319)
 * [WSMS (formerly WP SMS) – SMS & MMS Notifications with OTP and 2FA for WooCommerce](https://wordpress.org/plugins/wp-sms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-sms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-sms/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-sms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-sms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-sms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/select-all-groups-with-a-button-or-code/#post-17340622)
 * Status: resolved