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

Summary

In this chapter, we created a working, useful, and attractive WordPress plugin from scratch. Our plugin now displays a fully functional Digg button.

We learned how to extract information using WordPress API and how to use CSS to improve the appearance of our plugin. We also investigated some more advanced WordPress functionalities such as hooks.

Specifically, we covered:

  • Creating a plugin: How to fill in the information header and create a simple plugin template
  • Checking WordPress version: How to check that our plugin is compatible with the user’s version of WordPress
  • Modifying theme files: How to safely add functions to the theme files when we need to
  • Accessing post information: Different ways of obtaining data from the post such as title, permalink and content
  • Using WordPress hooks: How to use actions and filters to get things done from within our plugin (and not modifying the theme for instance)

Now that we've learned about WordPress hooks, we are ready to expand our knowledge and learn about Widgets. In the next chapter we will create a cool Wall widget for users to write comments directly on our blog sidebar.

主站蜘蛛池模板: 阿拉善右旗| 东莞市| 会东县| 宣汉县| 宝兴县| 高密市| 和田市| 江西省| 庆元县| 枞阳县| 叶城县| 太湖县| 嘉黎县| 湖北省| 克东县| 潜山县| 萨迦县| 将乐县| 堆龙德庆县| 区。| 东源县| 东辽县| 东平县| 神木县| 苗栗县| 调兵山市| 布拖县| 丰顺县| 蓝山县| 凤庆县| 景宁| 库车县| 兰州市| 乐业县| 辽源市| 邢台市| 镇沅| 邛崃市| 澄迈县| 上栗县| 吐鲁番市|