Summary

We've come a long way. We have learned about how Ajax works and we've learned how to tie into jQuery and how to debug some JavaScript. We have also learned how to use PHP library classes with static functions in our plugins and how to tie into the WordPress application from the backdoor. In order to pull this off, we have created a total of nine files:

  • ajax_search_results.php
  • css/live-search.css
  • includes/dynamic_javascript.php
  • includes/LiveSearch.php
  • index.php
  • tests/Test.php
  • tpls/no_results.tpl
  • tpls/results_container.tpl
  • tpls/single_result.tpl

We have constructed a working Ajax search, but as you may have noticed, it was fairly complex to set up, and even after all that work, it is still fairly primitive. The goal here was to teach you how to construct ...

Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.