SlideShare a Scribd company logo
Jonathan Bossenger
Let’s Code - WP REST API
Learn.WordPress.org
Updates, custom fields, and authentication
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
Learn.WordPress.org
Let's code!
The WP REST API -
Updates, custom
fields, authentication
Jonathan Bossenger
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.
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
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
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
8
Let’s code.
Resources
○ https://github.com/WordPress/Learn/issues/1268
○ 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/
○ https://developer.wordpress.org/rest-api/reference/posts/#create-a-post
○ https://developer.wordpress.org/reference/functions/register_meta/
○ https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#authentication-plugins
○ https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/
○ https://www.postman.com/downloads/

More Related Content

PPTX
Let's code: extending the WP REST API - modifying responses
PPTX
Using the WP REST API
PPTX
Interacting with the WP REST API
PPTX
Let's code_ WP REST API - custom routes and endpoints.pptx
PPTX
WordPress Rest API
PDF
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
PPTX
Using the WordPress REST API
PPTX
Word press rest api sudarshan shrestha
Let's code: extending the WP REST API - modifying responses
Using the WP REST API
Interacting with the WP REST API
Let's code_ WP REST API - custom routes and endpoints.pptx
WordPress Rest API
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
Using the WordPress REST API
Word press rest api sudarshan shrestha

Similar to WP REST API Authentication, custom fields and updating resources (20)

PDF
WordCamp Wilmington 2017 WP-API Why?
PDF
2019 WordCamp Orange County - An Introduction to the WordPress REST API
PDF
Building a mini-theme with WordPress REST API
PDF
JSON REST API for WordPress
PDF
JSON REST API for WordPress
PDF
Wp JSON API and You!
PDF
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
PDF
WordPress REST API
PDF
WORDPRESS_REST_API_WORDPRESS_REST_API.pdf
PPTX
The JSON REST API for WordPress
PPTX
Common WordPress APIs_ HTTP API.pptx
PDF
WordPress REST API hacking
PDF
WordPress REST API hacking
PDF
Old WP REST API, New Tricks
PDF
Introduction to WordPress Rest API
PPTX
New WordPress Developer APIs The Interactivity API
PPTX
Grant's Copy of APIs 101 Workshop.pptx
PDF
Extending the WordPress REST API - Josh Pollock
PDF
Getting Started With WP REST API
PDF
WP REST API - Adding Your Own Endpoint
WordCamp Wilmington 2017 WP-API Why?
2019 WordCamp Orange County - An Introduction to the WordPress REST API
Building a mini-theme with WordPress REST API
JSON REST API for WordPress
JSON REST API for WordPress
Wp JSON API and You!
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
WordPress REST API
WORDPRESS_REST_API_WORDPRESS_REST_API.pdf
The JSON REST API for WordPress
Common WordPress APIs_ HTTP API.pptx
WordPress REST API hacking
WordPress REST API hacking
Old WP REST API, New Tricks
Introduction to WordPress Rest API
New WordPress Developer APIs The Interactivity API
Grant's Copy of APIs 101 Workshop.pptx
Extending the WordPress REST API - Josh Pollock
Getting Started With WP REST API
WP REST API - Adding Your Own Endpoint

More from Jonathan Bossenger (20)

PPTX
The WordPress HTML API
PPTX
The WordPress Create Block tool
PPTX
PHP compatibility testing with PHPCompatibilityWP
PPTX
Common WordPress APIs_ Settings API
PPTX
Common WordPress APIs - Options API
PPTX
Common WordPress APIs: Metadata
PPTX
What’s new for developers_ (August 2023).pptx
PPTX
Testing your plugins for PHP version compatibility
PPTX
Common WordPress APIs_ Global Variables
PPTX
Common WordPress APIs_ Internationalization
PPTX
Testing WordPress 6.3 - Developer edition
PPTX
Common WordPress APIs: Responsive Images
PPTX
Common WordPress APIs - Dashboard Widgets
PPTX
Custom Tables in WordPress
PPTX
The WordPress Database
PPTX
WordPress Coding Standards
PPTX
Managing a WordPress Multisite Network
PPTX
Debugging in WordPress
PPTX
Testing plugins for PHP 8
PPTX
Introduction to WordPress Multisite Networks
The WordPress HTML API
The WordPress Create Block tool
PHP compatibility testing with PHPCompatibilityWP
Common WordPress APIs_ Settings API
Common WordPress APIs - Options API
Common WordPress APIs: Metadata
What’s new for developers_ (August 2023).pptx
Testing your plugins for PHP version compatibility
Common WordPress APIs_ Global Variables
Common WordPress APIs_ Internationalization
Testing WordPress 6.3 - Developer edition
Common WordPress APIs: Responsive Images
Common WordPress APIs - Dashboard Widgets
Custom Tables in WordPress
The WordPress Database
WordPress Coding Standards
Managing a WordPress Multisite Network
Debugging in WordPress
Testing plugins for PHP 8
Introduction to WordPress Multisite Networks

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PPTX
Machine Learning_overview_presentation.pptx
PPT
Teaching material agriculture food technology
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Cloud computing and distributed systems.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
sap open course for s4hana steps from ECC to s4
PDF
cuic standard and advanced reporting.pdf
PPTX
A Presentation on Artificial Intelligence
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Electronic commerce courselecture one. Pdf
Machine learning based COVID-19 study performance prediction
Machine Learning_overview_presentation.pptx
Teaching material agriculture food technology
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Chapter 3 Spatial Domain Image Processing.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Review of recent advances in non-invasive hemoglobin estimation
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Cloud computing and distributed systems.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
sap open course for s4hana steps from ECC to s4
cuic standard and advanced reporting.pdf
A Presentation on Artificial Intelligence
The AUB Centre for AI in Media Proposal.docx
Electronic commerce courselecture one. Pdf

WP REST API Authentication, custom fields and updating resources

  • 1. Jonathan Bossenger Let’s Code - WP REST API Learn.WordPress.org Updates, custom fields, and authentication
  • 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
  • 3. Learn.WordPress.org Let's code! The WP REST API - Updates, custom fields, authentication Jonathan Bossenger
  • 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
  • 9. Resources ○ https://github.com/WordPress/Learn/issues/1268 ○ 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/ ○ https://developer.wordpress.org/rest-api/reference/posts/#create-a-post ○ https://developer.wordpress.org/reference/functions/register_meta/ ○ https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#authentication-plugins ○ https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/ ○ https://www.postman.com/downloads/

Editor's Notes

  • #2: TITLE SLIDE: Make a copy of this presentation to your Google Drive, and edit to replace with your details.