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

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.

主站蜘蛛池模板: 睢宁县| 靖边县| 施甸县| 德阳市| 海安县| 娱乐| 齐河县| 博野县| 巢湖市| 中方县| 民丰县| 涟水县| 鄂托克旗| 台中县| 利辛县| 离岛区| 贡嘎县| 姚安县| 德令哈市| 洞头县| 眉山市| 大方县| 承德县| 阿城市| 亳州市| 乌鲁木齐县| 贺州市| 阳城县| 昌邑市| 富源县| 宕昌县| 尚义县| 台中县| 潜江市| 江永县| 辽中县| 昆山市| 祁连县| 罗定市| 栖霞市| 正镶白旗|