Connecting Frontend to the REST API
Learn using a nonce for authenticating a request to modify data.
REST API /lecture endpoint
In the lesson on search functionality, we explored the default WordPress REST API in detail. The default REST API has links for different post types. Since we enabled the show-in-rest
option when registering the lecture
post type, we can view the JSON data for the ten most recent lecture note posts by adding /wp-json/wp/v2/lecture to the end of the root URL of the website.
Get hands-on with 1400+ tech skills courses.