Latest Posts

Create a custom route in WordPress rest API – Updated 2021

Today we are going to create a custom route for WordPress rest API. For this, we need to add code in our theme, More specifically in functions.php First we create function where we define route In the above code, we are setting route “custom/v1/topics”. Note in above code we defining “custom/v1” and “topics” as First […]