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 11: Fetching, Caching, and Regularly Updating External Site Data

After spending most of our time learning how to extend WordPress to allow site administrators and users to create local content, this chapter focuses on interacting with external data sources. While we did some work with displaying Twitter feed content in the Creating a new shortcode with parameters recipe in Chapter 2, Plugin Framework Basics, we had very little control over how this data was displayed since the content was shown in an IFrame. We also had no control over how this data was fetched and no way to cache it. The reason for this is that every user loading a page containing the Twitter feed shortcode fetched their own copy of the information to be displayed. ...

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