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

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.

主站蜘蛛池模板: 那坡县| 神农架林区| 太谷县| 准格尔旗| 铜鼓县| 花莲县| 体育| 逊克县| 伊川县| 怀集县| 那坡县| 奉新县| 射阳县| 枣强县| 长寿区| 韩城市| 小金县| 英德市| 武城县| 佳木斯市| 东乡| 九寨沟县| 邵东县| 牡丹江市| 邯郸市| 吴堡县| 即墨市| 陈巴尔虎旗| 苗栗县| 科技| 年辖:市辖区| 兴仁县| 泰兴市| 石渠县| 葫芦岛市| 梁河县| 张家口市| 雷山县| 志丹县| 盱眙县| 肥东县|