WP REST API Authentication, custom fields and updating resources
Jan. 27, 2023•0 likes•16 views
Download to read offline
Report
Technology
The theme.json is a file that allows block theme developers to control the settings and styles of the blocks in the Editor.
In this video, you're going learn what happens when you add a theme.json file to a classic theme.
2. 2
👋🏽
Welcome!
As you join, please make sure you have your local
development environment ready:
• A local WordPress installation
• A code editor like VSCode or Sublime
• The example plugin
• https://github.com/jonathanbossenger/wp-
learn-rest-api/releases/download/0.0.3/wp-
learn-rest-api.0.0.3.zip
• Postman
https://www.postman.com/downloads/
Then, let everyone know in the chat where you’re
joining us from…
Hello!
○ My name is Jonathan Bossenger
○ From Cape Town, South Africa
○ Ex-developer turned code instructor
○ Sponsored contributor at Automattic
○ jonathanbossenger.com
4. Announcements
○ Welcome!
○ We are presenting in focus mode, but please feel free to enable your video.
○ You are welcome to ask questions.
○ You are welcome to post questions in the chat, or unmute to ask questions.
5. Announcements
○ Make sure your local install is ready
○ https://github.com/jonathanbossenger/wp-learn-rest-
api/releases/download/0.0.3/wp-learn-rest-api.0.0.3.zip
○ https://www.postman.com/downloads/
○ If I am going too fast, please let me know!
○ We will be posting this session to https://wordpress.tv/ afterwards
○ For more WordPress focused content please visit https://learn.wordpress.org/
○ Follow up questions - https://github.com/WordPress/Learn/issues/1268
6. Learning Outcomes
1. Update Posts using the WP REST API
2. Create or update Post custom fields
3. Authenticate with the REST API using Application Passwords
4. Test Requests using Postman
7. Objectives
1. Setup and review the example plugin code so far
2. Add functionality to update an existing post
3. Quick review of Custom Fields (aka post meta)
4. Add functionality to add or update custom fields
5. Introduction to Application Passwords
6. A quick introduction to using Postman to test API requests
7