官术网_书友最值得收藏!

Summary

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() and wp_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.

主站蜘蛛池模板: 祁东县| 定陶县| 潍坊市| 探索| 嘉义市| 宝清县| 郎溪县| 盖州市| 虹口区| 吴江市| 墨江| 南充市| 九江市| 巴中市| 穆棱市| 娱乐| 洪雅县| 红桥区| 牟定县| 鞍山市| 宁国市| 盐津县| 漳浦县| 盐津县| 科尔| 郸城县| 肃北| 蓝田县| 襄汾县| 怀远县| 湛江市| 遂溪县| 十堰市| 宜阳县| 鹰潭市| 阜康市| 苗栗县| 台江县| 台南市| 同心县| 水富县|