G Online SMS
G Online SMS
Description
G Online SMS connects your WordPress site to the G Online SMS gateway so you can send SMS messages automatically based on events in WordPress, or manually to any phone number.
Features
- Send single or bulk SMS directly from the WordPress admin.
- Bulk SMS by user role — target all subscribers, customers, or any custom role.
- User lifecycle notifications:
- Notify admin when a new user registers.
- Send a welcome SMS to every new user.
- Send a farewell SMS when an account is deleted.
- Optional login-alert SMS to admin.
- WooCommerce integration:
- Customise SMS messages per order status (pending, processing, completed, refunded, etc.).
- Notify admin when a new order is placed.
- Supports rich order placeholders:
{order_id},{order_total},{customer_name},{order_items}, and many more.
- Contact Form 7 integration:
- Send an SMS to admin (or the submitter) when any CF7 form is submitted.
- Per-form overrides via the Additional Settings tab.
- Gravity Forms integration:
- Send an SMS when a Gravity Forms entry is submitted.
- Use
{field_id:N}or{Field Label}placeholders.
- SMS Log — every sent and failed message is recorded with status, recipient and trigger source.
- Test SMS button — verify your API key right from the settings page.
- Fully translatable (
.potfile included). - No Bootstrap or external CSS loaded site-wide — lightweight admin-only assets.
Supported Placeholders (WooCommerce)
{order_id} `{order_number}` `{order_total}` `{order_status}` `{order_date}` `{customer_name}` `{customer_first_name}` `{customer_last_name}` `{customer_email}` `{customer_phone}` `{billing_address}` `{shipping_address}` `{payment_method}` `{shipping_method}` `{order_items}` `{subtotal}` `{tax_amount}` `{currency}` `{coupon_code}` `{site_name}` `{site_url}`
Supported Placeholders (User notifications)
{first_name} `{last_name}` `{display_name}` `{user_email}` `{user_login}` `{site_name}` `{site_url}`
External Services
This plugin connects to the G Online SMS gateway to send SMS messages and check account balance. This is a third-party service operated by G Online Sites.
What data is sent and when
- When sending an SMS — the recipient’s phone number, the message text, your Sender ID, and your API key are transmitted to the gateway. This happens every time an SMS is triggered (user registration, WooCommerce order status change, form submission, manual send, etc.).
- When checking balance — only your API key is sent. This happens each time the plugin dashboard page is loaded.
No data is sent without your action
No data is ever transmitted unless you have entered a valid API key in the plugin settings. The plugin makes no external calls on the front end of your website.
Service provider details
- Service: G Online SMS — bulk SMS messaging gateway for Ghana and beyond.
- Provider: G Online Sites
- Gateway URL: https://sms.gonlinesites.com/app
- Terms of Service: https://sms.gonlinesites.com/app/terms
- Privacy Policy: https://sms.gonlinesites.com/app/privacy
By using this plugin you agree to the terms of service and privacy policy of the G Online SMS gateway listed above.
Installation
- Upload the
g-online-smsfolder to/wp-content/plugins/, or install directly via Plugins Add New. - Activate the plugin.
- Go to G Online SMS Settings and enter your API Key, Sender ID, and Admin Phone Number.
(Obtain your API key at sms.gonlinesites.com.) - Use the Send Test SMS button to verify everything is working.
- Configure WooCommerce, CF7, or Gravity Forms messages in their respective sub-pages.
Faq
Register or log in at sms.gonlinesites.com/app and copy your API key from the dashboard.
The plugin checks for a billing_phone user meta (set by WooCommerce), then a phone meta, then falls back to the username. We recommend using WooCommerce’s billing phone field for best results.
Yes. WooCommerce, Contact Form 7, and Gravity Forms integrations are loaded automatically only when those plugins are active.
In the CF7 form editor go to the Additional Settings tab and add:
g_online_sms_message: New enquiry from {your-name}
g_online_sms_to: admin
Replace admin with a CF7 phone field name (e.g. your-phone) to SMS the submitter instead.
Yes — your API key is stored in the WordPress options table (the same location as all other plugin settings) and is only transmitted to the SMS gateway when sending messages or checking your balance.
Reviews
Changelog
2.0.0
- Complete rewrite with object-oriented, class-based architecture.
- Added SMS log with pagination and clear-log action.
- Added per-status admin SMS notifications for WooCommerce.
- Added Contact Form 7 integration with per-form overrides.
- Added Gravity Forms integration.
- Added login-alert SMS to admin.
- Added “Send Test SMS” button on settings page.
- Full nonce verification on all form submissions.
- Proper
esc_*output escaping throughout. - Removed Bootstrap CDN dependency (replaced with lightweight admin.css).
- Fixed undefined variable errors in WooCommerce placeholder replacement.
- Added
uninstall.phpto clean up options and DB table on plugin deletion. - Translatable —
.potfile included.
1.0.0
- Initial release.