In the previous post, I walked through the process required to get WordPress modal dialogs to appear within the context of the administration area.
- the built-in WordPress API,
- the provided Thickbox library,
- and some example code for getting it to display.
In this tutorial, I’ll walk through populating the modal dialog with data. After that, I’ll share how to populate the data dynamically using Ajax.
Whenever it comes to developing solutions for clients, there are going to be times when you’re likely tasked with displaying information in WordPress modal dialogs.
But WordPress has infrastructure built-in that makes it trivial to incorporate functionality into WordPress. So in three upcoming posts, I’ll cover the following:
- How to incorporate WordPress modal dialogs using built-in libraries,
- Populating the modal dialogs with data,
- Populating the modal dialog with dynamic data via Ajax.
Because of the nature of the series, the posts won’t be back-to-back, but they’ll all use a unique tag that you can use to bookmark and refer to as a series once the posts are complete.
With that said, let’s talk about easily incorporating WordPress modal dialogs with built-in libraries.