Reputation: 38795
I have created a HTML form and the data will be submitted to a wordpress plugin to create new post programmatically. But, how can I call this wordpress plugin by URL, so that I can define the URL for the form
action tag?
The wordpress plugin of create new post programmatically can refer to here.
Thanks
Upvotes: 0
Views: 664
Reputation: 14381
Can't you do a custom PHP file to handle the form and use wp_insert_post to create a new post?
Plugins normally use nonces or other methods to prevent unauthorized users to access them directly.
Upvotes: 1