Tutorials
Short, focused articles on one idea at a time. Filter by level or type, or search for a topic.
-
Integrating plugins with the block editor
Ship blocks, block bindings and editor panels from a plugin, and register meta for the editor.
-
Plugin dependencies with Requires Plugins
Declare plugin dependencies in the header, check for them at runtime and degrade gracefully.
-
Object-oriented plugin architecture
Structure larger plugins with namespaces, classes, hook registration and clear responsibilities.
-
Composer and autoloading in plugins
Use Composer autoloading and dependencies in plugins, and prefix vendor code to avoid conflicts.
-
Automated tests for plugins
Set up the WordPress test suite for a plugin, write integration tests, and run them in CI.
-
Coding standards with PHPCS and WPCS
Check code against WordPress Coding Standards with PHPCS, fix issues automatically and add it to CI.
-
Data migrations and plugin updates
Run upgrade routines between plugin versions, migrate data in batches, and stay backwards compatible.
-
Multisite-compatible plugins
Network activation, per-site tables and options, and testing plugins on Multisite.
-
Privacy tools: personal data export and erasure
Hook into WordPress privacy tools so users can export and erase data your plugin stores.
-
Licensing and updates for premium plugins
Deliver updates outside WordPress.org, licence checks and GPL obligations.
-
Publishing on the WordPress.org plugin directory
Prepare the readme, pass review guidelines, use SVN releases and support users.
-
Plugin performance at scale
Keep plugins fast on large sites: query discipline, caching, lazy loading and avoiding autoload bloat.
-
WordPress performance: queries, autoload and profiling
Find slow queries and hooks with Query Monitor, trim autoloaded options, and fix common bottlenecks.
-
WordPress Multisite
When to use Multisite, network setup, switching sites in code and network-wide plugins.
-
Debugging WordPress
WP_DEBUG and logging, Query Monitor, debugging hooks and AJAX, and reading fatal error reports.
-
WordPress at scale
Architecture for high-traffic WordPress: caching layers, database scaling, media offloading and search.
-
Contributing to WordPress core
Find tickets, set up the core development environment, write patches and get them reviewed.
-
Deploying and migrating WordPress safely
Environments, database search and replace, media, configuration per environment and rollbacks.
-
Your first WordPress plugin
Create a plugin with a header, hook into WordPress and activate it.
-
Plugin structure and best practices
Organise files, prefix everything, guard direct access and keep the main file small.