This is the code repository for WordPress Plugin Development Cookbook - Third Edition, published by Packt.
Explore the complete set of tools to craft powerful plugins that extend the world’s most popular CMS
WordPress is one of the most widely used, powerful, and open content management systems (CMS). Whether you're a site owner trying to find the right extension, a developer who wants to contribute to the community, or a website developer working to fulfill a client's needs, learning how to extend WordPress' capabilities will help you to unleash its full potential. This book will help you become familiar with API functions to create secure plugins with easy-to-use administration interfaces.
This book covers the following exciting features:
- Discover action and filter hooks, which form the basis of plugin creation
- Explore the creation of administration pages and add new content management sections through custom post types and custom fields
- Add new components to the block editor library
- Fetch, cache, and regularly update data from external sources
- Bring in external data sources to enhance your content
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
<?php
/*
Plugin Name: Chapter 2 - Plugin Header
Plugin URI:
Description: Declares a plugin that will be visible in
the WordPress admin interface
Version: 1.0
Author: Yannick Lefebvre
Author URI: http://ylefebvre.ca
License: GPLv2
*/
Following is what you need for this book:
This book is for WordPress users, developers, and site integrators interested in creating new plugins to address their personal needs, fulfill client requirements, and bring new capabilities to the WordPress community. Basic knowledge of PHP and WordPress is expected.
With the following software and hardware list you can run all code files present in the book (Chapter 1-13).
Chapter | Software required | OS required |
---|---|---|
1-13 | WordPress 5.9 | Windows, Mac OS X, and Linux |
1-13 | PHP 5.6 and higher | |
1-13 | JavaScript, jQuery | |
1-13 | Local development web server | |
1-13 | Visual Studio Code | |
1-13 | Subversion | |
1-13 | Poedit |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Yannick Lefebvre is a plugin developer who has created multiple plugins on the official WordPress repository. His first creation, Link Library, is used on thousands of sites worldwide. With a background in Computer Science, he wrote his first plugin in 2004 and quickly started sharing his creations with the community. He is actively involved in the Montreal WordPress community, has presented multiple times at WordCamp Montreal, and offers custom plugin development services. By day, Yannick works for CM Labs Simulations, a company providing software tools and simulators for vehicles and heavy equipment.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.