WP Manifestindependent plugin directory
manifest / developer / wp-ajax-examples

AJAX Examples

AJAX Examples for WordPress

by Blair Williams · github.com/supercleanse/wp-ajax-examples · website

6stars
2forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/supercleanse/wp-ajax-examples/archive/refs/heads/master.zip

Written for Blair Williams's SLC WordCamp 2013 talk 'Using AJAX in WordPress'.

Slides are available for this talk at: http://blairwilliams.com/slcwc2013

Examples

Admin (examples/AjexAdmin.php)

This example illustrates how you'd go about putting together some dynamic AJAX based user interfaces on the back end of WordPress.

This example shows how to put together a simple, dynamic list. Items in this list can be added, edited, and removed without submitting any kind of form post.

Front-End (examples/AjexFrontEnd.php)

This example illustrates how you'd go about putting together some dynamic AJAX based user interfaces on the front end of WordPress.

This example creates a simple shortcode that, when placed on a page loads up the appropriate scripts and pulls the information directly from the database to display.