Register Custom Rest API

For Creating custom api in wordpress we need to register a new route url for our custom rest api. Go the theme functions.php file and add the code Now add the function which gives some data when you hit the custom api url Now hit the url in browser for Ex: http://localhost/demowordpress/wp-json/twentyone_wl/v1/posts Now You see […]

Read