Workshop: Building a custom translated API Endpoint

Christina Garofalo

The WordPress REST API is a powerful tool to enhance your web development projects. In this workshop, attendees will learn how to leverage WordPress’s existing endpoints and create custom ones using PHP, requiring only one free plugin (Polylang) to handle translations. Attendees will learn to make a custom-translated public endpoint that can be used to power a simple frontend React app. Attendees will learn about security concerns and how to lock down the REST API. Time permitting, attendees can have a Q&A period to ask questions. This workshop will be a hands-on adaptation of my WordCamp Montreal 2023 talk on the same topic and is intended for intermediate developers. This workshop will be in English; however, I am bilingual and can explain and answer questions in French if needed.

Requirements for this workshop:

  • Good knowledge of PHP. (React & CSS knowledge not required)
  • A blank local WordPress install (Preferably Local) with the Polylang plugin installed
  • An IDE with syntax highlighting (PHPStorm, VSCode, Zed, etc.)
  • Firefox or Chrome with the JSONvue extension (by Gildas) installed.
  • Optional: An API Testing tool (Bruno, Postman, Insomnia etc.)
Christina Garofalo

Categories:

Tracks: