Skip to Main Content
WordPress Plugin Development Cookbook - Third Edition
book

WordPress Plugin Development Cookbook - Third Edition

by Yannick Lefebvre
March 2022
Intermediate to advanced content levelIntermediate to advanced
420 pages
8h 21m
English
Packt Publishing
Content preview from WordPress Plugin Development Cookbook - Third Edition

Chapter 10: Adding New Widgets to the WordPress Library

Widgets have been present in WordPress from the early days of the platform. They allow users to easily populate sidebars or other widget areas of their website theme with content that is provided by WordPress itself (post or page data) or by any plugins that have been installed (for example, book review system information). Starting with the recent version 5.8, WordPress introduced the ability to use blocks from the block editor in the widget area. That being said, the platform continued supporting legacy widgets, coded using a combination of PHP and HTML. In the subsequent version 5.9, WordPress introduced the concept of block themes, with the first example theme not supporting widgets. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

WordPress 5 Cookbook

WordPress 5 Cookbook

Rakhitha Nimesh Ratnayake
Building Web Apps with WordPress, 2nd Edition

Building Web Apps with WordPress, 2nd Edition

Brian Messenlehner, Jason Coleman
Professional WordPress Plugin Development, 2nd Edition

Professional WordPress Plugin Development, 2nd Edition

Brad Williams, Justin Tadlock, John James Jacoby

Publisher Resources

ISBN: 9781801810777Supplemental Content