1
The WordPress Database
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
The WordPress Database
Jonathan Bossenger
Announcements
○ Welcome, and thanks to Tracy for co-hosting today.
○ 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.
○ 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/
Learning outcomes
○ Take a walk through the default WordPress database schema.
○ Learn how to interact with the different database tables in WordPress
○ Learn how to create and interact with custom database tables
Requirements
○ A local WordPress install
○ A text editor
○ A way to access your database
• https://wordpress.org/plugins/sql-buddy/
○ The wp-learn-database.php script in the root of your WordPress installation
• https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b
Let’s go!

The WordPress Database

  • 1.
    1 The WordPress Database JonathanBossenger 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, andthanks to Tracy for co-hosting today. ○ 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. ○ 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/
  • 5.
    Learning outcomes ○ Takea walk through the default WordPress database schema. ○ Learn how to interact with the different database tables in WordPress ○ Learn how to create and interact with custom database tables
  • 6.
    Requirements ○ A localWordPress install ○ A text editor ○ A way to access your database • https://wordpress.org/plugins/sql-buddy/ ○ The wp-learn-database.php script in the root of your WordPress installation • https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b
  • 7.