Does Anspress Support Jason API?
I see. Thank you ! Never worked with WordPress before.
In our opinion what would the best way be to integrate questions and users from node ?
Initially saw options :
1. use the wp-rest endpoints to create the user and post but couldn’t figure out how to create custom meta for the user and apparently can’t create the posts (questions) yet in Anspress as you mentioned.
2. use a node wrapper for wp-cli ? Could probably get the user creation going. Not sure about the posts ( questions )
3. Insert directly into the tables : wp_users, wp_usersmeta and wp_posts keeping in mind all the fields that are created when creating a question manually.
Probably a combination of these. Was thinking to use the wp-cli to create the user , get it’s id use the wp-cli to add custom meta that i need. use node-mysql to insert the question in wp-post with the user id created previously.
For these to work though of course would need the WordPress instance and express app hosted on the same domain.
Hello Caim,
Its scheduled for upcoming release.