I am implementing the REST API with fetch() promises as requests on a Password protected page with a custom table without using a plugin (only using the WP REST API that has been merged into WordPress core – thumbs up 👍 WordPress team, that was a smart move, thank you).
I need to create an endpoint that when called returns an XML with the products of the store. I have the XML generated, but I don’t know how to make the endpoint return it in XML format, because now it returns it in JSON format, and being an XML, it does not return it well.
Turns out I’m trying to integrate witei’s CRM into a website. According to the witei documentation, I must indicate a url (webhook), where I want to receive the information of the properties that has changed, so that I can keep the properties of my website updated.
I have my
style.php file looking like this.
How can I add extra parameters after a permalink, specifically if I’m using a custom post type?
I am trying to build a WordPress plugin here with a custom user admin area. What I would like to do is when the user adds /edit at the end of the page, it should open a page from my plugin. So for example
I’m trying to generate rewrite rules for a RESTful API. I just want to see if there is a better way to make this work than having to write out every possible rewrite combination.
I have a database table outside WordPress that I need to make endpoints for. I’ve created a page
/cars/ where I plan on using a page template to generate links. I would like for the url to look like
/cars/%model%/ ). Originally I thought I could do it with endpoints but wasn’t sure how to make them dynamic based off of the slug pulled from the Model Table. I also wasn’t sure if it would be easier using Permalink Structure tags or which was better.