[ad_1]
I am trying to build a site with Next.js and headless wordpress. I also want to use Ultimate Member plugin. I can get the registration form shortcode back on the frontend but I don’t know what to do with it. Is there a Ultimate Member API I can interact with to get the form fields and then to submit the form?
[ad_2]
As with most popular plugins, using them with headless WordPress means doing a shit load of manual labor to reinvent that plugin’s functionality yourself.
You’d have to look into what functions and what parameters Ultimate Member uses in its own codebase, and then make your own ajax hooks to hit like an API, passing in the right parameters, and then sending them off to Ultimate Member functions.
Its an absolute nightmare and I would not recommend it. And imagine what happens when the plugin updates down the road? Typically the update would be pretty seamless, but now you have to deal with “does the API I invented still work with the plugin updates”.
If you’re building a membership site, which contains lots of server interaction, you’re going to have a very steep hill to climb going the headless route. To use UM, you’re essentially going to have to reverse engineer their plugin, because they don’t have an API AFAIK.
Build this in regular WP.
What’s your reasoning for going headless?