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

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.

主站蜘蛛池模板: 大城县| 广宗县| 图们市| 东兰县| 铅山县| 兴业县| 河曲县| 南江县| 山西省| 静安区| 长垣县| 奉节县| 德惠市| 孟津县| 鹤山市| 怀来县| 舒兰市| 隆尧县| 东乡| 新绛县| 石渠县| 泌阳县| 太湖县| 庆云县| 桦甸市| 聂荣县| 灵武市| 左贡县| 京山县| 建宁县| 那坡县| 文成县| 闵行区| 临夏市| 南雄市| 汶上县| 正定县| 潞西市| 龙门县| 岳西县| 子洲县|