WordPress Plugin Development, 2nd Ed

Author: Brad Williams, Justin Tadlock, John James Jacoby
Publisher: Wrox
Pages: 480
ISBN: 978-1119666943
Print: 1119666945
Kindle: B0899MW9CP
Audience: WordPress developers
Rating: 4.5
Reviewer: Kay Ewbank

The authors of this book are well-known in the WordPress world, with more than 100 published plugins between them. Of course, that doesn't mean they can tell other developers how to write plugins, but it's a good start.

The book starts with an introduction to plugins - what they are, where to find available ones, their advantages and how to install and manage them. They then move on to discussing how to create and use plugins. That might seem to cover the whole landscape of the book, but it's just an overview, and is followed by a discussion on how to create and use dashboards, menus and submenus, and how to interact with the options and settings APIs.

 

Banner

Security and performance considerations are looked at next, including data validation and sanitizing, formatting SQL statements, and security good habits, caching and transients.

The more interesting parts of the book build on from here, starting with a good explanation of hooks, actions and filters. A chapter on JavaScript comes next, followed by a detailed description of Blocks and Gutenberg.

A chapter on content  looks at custom post types, post metadata, meta boxes and custom taxonomies. The authors then move on to how to interact with users and user data before looking at scheduled tasks and Cron. They then look at internationalization, localization and translation files.

The third part of the book is more about the internals, with chapters on the Rest API and the HTTP API. There's a really interesting chapter on Multisite, what it can do, and how to enable it in WordPress. A chapter titled 'the kitchen sink' rounds up things like shortcodes, widgets, rewrite rules and the heartbeat API that haven't been covered elsewhere.

The book ends with a chapter on debugging and a final chapter on the developer toolbox - essentially a roundup of the resources and tools available to the WordPress developer.

Overall, this is a very good book, and if you're writing WordPress plugins you should read it and follow its advice. I'd have liked a bit more overview, but it's a very minor niggle, and it shouldn't put you off buying and benefiting from this book.

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Database Design for Mere Mortals: 25th Anniversary Edition

Author: Michael J Hernandez
Publisher: Addison-Wesley
Pages: 680
ISBN: 978-0136788041
Print: 0136788041
Kindle: B08JLXKJ6S
Audience: Database developers
Rating: 5
Reviewer: Kay Ewbank

As the title of this book suggests, this is a title that has stood the test of time, and this updated 4th Edition has bee [ ... ]



Functional Design (Addison-Wesley)

Author: Robert C. Martin
Publisher: Addison-Wesley
Date: September 2023
Pages: 384
ISBN: 978-0138176396
Print: 0138176396
Kindle: B0CGHQKGYG
Audience: General
Rating: 4.5
Reviewer: Kay Ewbank

This book sets out to explain the principles, patterns and practices of functional design, and why functional prog [ ... ]


More Reviews