How to create a custom REST API endpoint for publishing posts with specific permalinks in WordPress?
I’m a new with php and I am working on a WordPress project where I need to create a custom REST API endpoint that allows publishing posts with specific permalinks. Here’s what I’m trying to achieve: Create a new REST API endpoint, something like /wp-json/custom/post This endpoint should accept POST requests with the following parameters: