If you’re talking about WordPress user registration, you want to start by reading about the User Register hook: https://codex.wordpress.org/Plugin_API/Action_Reference/user_register
Then your code would be something like this which will automatically fire each time a user registers on the site:
add_action('user_register','send_sms');
function send_sms($user_id){
// Code for your SMS API Here
}
The code would go in a plugin or in your Theme’s functions.php
file.
If you’re talking about an ecommerce plugin, you need to see what action hooks they have available for customer registration and use that as per the developer documentation.
Related Posts:
- What is an Endpoint?
- How do you get the API key for Locu?
- Postman Resolving “Invalid CORS request” for a POST Request
- WP function/filter for modifying http headers?
- Set up WP Authentication from External API
- How do I cache (core) API requests?
- WP REST API only returning partial list of users
- Slow REST API calls on self-hosted WordPress [closed]
- WordPress JSON output
- how to authenticate for the REST API from a plugin and from command line
- How to stop WP API endpoint from caching?
- How to implement ERP (Enterprise Resource Planning) into WordPress?
- How to get the attached gallery in the rest API?
- WP API : date_query parameter
- Gutenberg internal page link search box
- WordPress.org Support Forum API
- Sync posts from one WordPress site to another
- Authentication/API Questions
- Connect external web app to wordpress
- How to get all posts (in chunks) via XML-RPC?
- How to add a custom parameter to a WP API default route?
- Developing Themes with React/Angular
- Authentication for a mobile app connected via wp-rest api?
- curl POST work with user meta but not the custom user meta
- WordPress API – count posts
- how to get nonce using json api
- API for Post Stats for Self-Hosted WordPress using JetPack [closed]
- Create post with REST API in php with file_get_contents
- How to Hit External REST POST API in WordPress? [closed]
- Displaying Content with WP Rest API
- API getting null values with wp_remote_post
- Where to find WordPress API changes for each version released
- I am trying to use the Theme Customization API but I keep getting an error
- Custom Post for Locating by Google Maps API
- Extending WordPress REST API
- Headless WordPress – Issue with plugin path
- How can I cache WordPress Rest API Response
- Possible to use wordpress as publishing platform but programmatically inject content?
- How to avoid loading wp-load.php from external php scripts?
- POST request not going through?
- are there any initiatives to work wordpress as microservices?
- How can I send edits to my blog programmaticly?
- I want to retrieve all posts of a blog without username & password
- WordPress Google Calendar Oath 404
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- WordPress as GraphQL client
- How to add custom preview urls for some pages?
- How to save post with different languages and linked them with WPML?
- Mixcloud FooterWidget api errors in Chrome and Safari but not Firefox?
- wordpress “rest_invalid_handler” error
- WC REST Payment – Stripe Gateway’ is not available
- Add basic authentication of WordPress on any external PHP file?
- Store regex expression in WordPress DB using Options API
- cURL to install theme
- Best way to integrate contact us page with wordpress REST API [closed]
- Submit comment via JSON from Android device
- Manage a resource via REST API
- WP List Table in custom post type
- Easiest way to call an External rest API?
- How to edit feature image with XML RPC?
- Integrate product feed API in Woocommerce [closed]
- Accessing a 3rd party API – terminology to differentiate between that and publishing an API?
- How to fix AWS SNS API end point code that cause site not to load?
- WP REST API and Access-Control-Allow-Origin
- Creating posts from API data, how to identify posts already imported?
- Soundcloud Smart Player
- Use WordPress user database in external php application
- Jetpack JSON API configure button not showing [closed]
- Theme Customization API Changes not Saving
- New Twitter API and Twitter count + timeline doesn’t work anymore [closed]
- wp_signon returns user but the user is not logged in because wp installed on subdomain. How to make it work?
- get_pages and get_posts returning different data?
- Working Around rest_forbidden_context
- How to store API authentication password?
- WordPress and API (rapidapi) request
- Solution for processing lots of data with CRON/API, dealing with memory/timeout issues
- Post content in wp_remote_post
- woocommerce api echo out response
- Limit the number of external API calls per second
- WordPress API – Getting just post content
- I need some assistance opening a few videos in VLC on android automatically from my wordpress site
- Adding geographical information on a registration page
- How to use following API with WordPress?
- rest_cannot_create_user
- Get total count of records in WP GraphQL API
- Implementing URL JSON API Data into Website
- Intergrate JSON into wordpress
- Gravit Forms Notification send after 3rd party API response
- Daily automatic update of stock quotes via REST API and Cronjob. Or is there a more sophisticated way?
- Expand author, tags and categories in the WordPress JSON API
- How to display parent category with first level child in REST API
- Stop Vimeo video with javascript – inside a loop and using a modal window
- Why does “if statement” has to “die()”, otherwise wont work?
- Cannot get transient to work on shortcode, Moz API
- XML RPC -> Create User
- Get full page HTML for a non-public WordPress page
- Trying to integrate wordpress query on other website – getting redirection to wp-install
- WordPress SMS API integration without plugin
- Zoho subscription API to WordPress [closed]
- XMLRPC: How to retrieve possible custom fields for a new post?