SlideShare a Scribd company logo
1
Custom Tables in WordPress
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
Custom tables in WordPress
Jonathan Bossenger
Announcements
○ Welcome, and thanks to Tracy for co-hosting.
○ 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 fundamentals of creating and managing custom WordPress tables.
• When you should consider a custom table
• Where to find documentation
• How to create a custom table
• How to select, add or update data in a custom table
• A brief overview of table updates
• Cleaning up your custom 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
○ An empty plugin
Let’s go!
Resources
○ https://codex.wordpress.org/Creating_Tables_with_Plugins
○ https://developer.wordpress.org/reference/functions/register_activation_hook/
○ https://developer.wordpress.org/reference/functions/register_deactivation_hook/
○ https://developer.wordpress.org/reference/classes/wpdb/
○ https://wordpress.stackexchange.com/questions/4852/post-meta-vs-separate-database-tables

More Related Content

PPTX
recount text
PPTX
New WordPress Developer APIs The Interactivity API
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_ HTTP API.pptx
recount text
New WordPress Developer APIs The Interactivity API
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_ HTTP API.pptx

More from Jonathan Bossenger (20)

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
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
PPTX
Developing for multisite
PPTX
Custom Post Types and Capabilities.pptx
PPTX
Developing WordPress User Roles and Capabilities
PPTX
Let's code: WordPress multisite experiments
PPTX
Creating a WordPress multisite network
PPTX
Extending WordPress: common security vulnerabilities
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
The WordPress Database
WordPress Coding Standards
Managing a WordPress Multisite Network
Debugging in WordPress
Testing plugins for PHP 8
Introduction to WordPress Multisite Networks
Developing for multisite
Custom Post Types and Capabilities.pptx
Developing WordPress User Roles and Capabilities
Let's code: WordPress multisite experiments
Creating a WordPress multisite network
Extending WordPress: common security vulnerabilities
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Machine learning based COVID-19 study performance prediction
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Spectroscopy.pptx food analysis technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
MYSQL Presentation for SQL database connectivity
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Unlocking AI with Model Context Protocol (MCP)
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology
20250228 LYD VKU AI Blended-Learning.pptx
sap open course for s4hana steps from ECC to s4
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
MYSQL Presentation for SQL database connectivity
Ad

Custom Tables in WordPress

  • 1. 1 Custom Tables in WordPress Jonathan Bossenger Learn.WordPress.org
  • 2. 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
  • 3. Learn.WordPress.org Custom tables in WordPress Jonathan Bossenger
  • 4. Announcements ○ Welcome, and thanks to Tracy for co-hosting. ○ 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.
  • 5. 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/
  • 6. Learning outcomes ○ The fundamentals of creating and managing custom WordPress tables. • When you should consider a custom table • Where to find documentation • How to create a custom table • How to select, add or update data in a custom table • A brief overview of table updates • Cleaning up your custom tables
  • 7. 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 ○ An empty plugin
  • 9. Resources ○ https://codex.wordpress.org/Creating_Tables_with_Plugins ○ https://developer.wordpress.org/reference/functions/register_activation_hook/ ○ https://developer.wordpress.org/reference/functions/register_deactivation_hook/ ○ https://developer.wordpress.org/reference/classes/wpdb/ ○ https://wordpress.stackexchange.com/questions/4852/post-meta-vs-separate-database-tables