We've gone through a lot of topics in this chapter, and we've taken you step by step through a sensible development flow. Here's what we've covered:
Structuring a plugin: How to prepare an outline of key components and implement them slowly, allowing you to test as you go
Accessing post information: Different ways of obtaining data from the post such as title, permalink and content
Checking WordPress version: How to check that our plugin is compatible with the user's version of WordPress
Using WordPress hooks: How to use actions and filters to get to trigger functions in our plugin
Include external JavaScript files in your plugins using WordPress'
wp_register_script()
andwp_enqueue_script()
functions
Now that we've learned a bit more about WordPress hooks, the API, and how to handle some of the external files, we are ready to look at some more complex code patterns. We will do this in the next chapter as we improve upon the built-in WordPress search feature.