1
Common WordPress APIs:
Metadata API
Jonathan Bossenger
Learn.WordPress.org
2
👋🏽 Welcome!
As you join, let everyone know in the chat where you’re
joining us from…
Hello!
○ My name is Jonathan Bossenger
○ From Cape Town, South Africa
○ Developer educator at Automattic
○ Sponsored to work with the Training Team
○ jonathanbossenger.com
Learn.WordPress.org
Metadata API
Jonathan Bossenger
Announcements
○ Welcome.
○ Please let me know if you can’t see this slide!
○ 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
○ If I am going too fast, please let me know!
○ We will be posting this session to https://wordpress.tv/ afterwards.
○ For WordPress tutorials and courses please visit https://learn.wordpress.org/
○ For WordPress developer news and updates please visit
https://developer.wordpress.org/news/
Learning outcomes
○ The Metadata API
• What is the Metadata API and why it’s useful
• How to access metadata in the WordPress dashboard as Custom Fields
• Using the WordPress Metadata API to interact with metadata
• Using the metadata wrapper functions
Question time
○ On a scale of 1 to 5, how well do you know this topic?
Requirements
○ A local WordPress install
○ A text editor
○ Access to your local database
• https://wordpress.org/plugins/sql-buddy/
○ Some post data
• https://wordpress.org/plugins/fakerpress/
○ A “test bed” file
• https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b
Let’s go!
Resources
○ https://wordpress.org/plugins/sql-buddy/
○ https://wordpress.org/plugins/fakerpress/
○ https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b
○ https://developer.wordpress.org/apis/metadata/
○ https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/
○ https://developer.wordpress.org/reference/

Common WordPress APIs: Metadata

  • 1.
    1 Common WordPress APIs: MetadataAPI Jonathan Bossenger Learn.WordPress.org
  • 2.
    2 👋🏽 Welcome! As youjoin, let everyone know in the chat where you’re joining us from… Hello! ○ My name is Jonathan Bossenger ○ From Cape Town, South Africa ○ Developer educator at Automattic ○ Sponsored to work with the Training Team ○ jonathanbossenger.com
  • 3.
  • 4.
    Announcements ○ Welcome. ○ Pleaselet me know if you can’t see this slide! ○ 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 sureyour local install is ready ○ If I am going too fast, please let me know! ○ We will be posting this session to https://wordpress.tv/ afterwards. ○ For WordPress tutorials and courses please visit https://learn.wordpress.org/ ○ For WordPress developer news and updates please visit https://developer.wordpress.org/news/
  • 6.
    Learning outcomes ○ TheMetadata API • What is the Metadata API and why it’s useful • How to access metadata in the WordPress dashboard as Custom Fields • Using the WordPress Metadata API to interact with metadata • Using the metadata wrapper functions
  • 7.
    Question time ○ Ona scale of 1 to 5, how well do you know this topic?
  • 8.
    Requirements ○ A localWordPress install ○ A text editor ○ Access to your local database • https://wordpress.org/plugins/sql-buddy/ ○ Some post data • https://wordpress.org/plugins/fakerpress/ ○ A “test bed” file • https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b
  • 9.
  • 10.
    Resources ○ https://wordpress.org/plugins/sql-buddy/ ○ https://wordpress.org/plugins/fakerpress/ ○https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b ○ https://developer.wordpress.org/apis/metadata/ ○ https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/ ○ https://developer.wordpress.org/reference/