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

Summary

We have come a long way from the initial concept to the final plugin. We have learned that using jQuery and Ajax with WordPress does not have to be hard.

The Live Blogroll plugin we created made our blogroll more attractive and interactive. When the user hovers the mouse over the links, a list of recent posts is displayed using Ajax to retrieve the information. We learned how to use Ajax with high-level jQuery functions and easily process the retrieved data.

Specifically, we covered:

  • Blogroll: Accessing and modifying information using WordPress filters hook
  • Fetching RSS feeds: Using built-in WordPress functionality with caching
  • Use scripts and other code in <head> section: Including JavaScript and CSS files using WordPress action hooks
  • Using jQuery: Setting up a jQuery file, with its powerful set of functions, and using it later with Ajax support
  • Ajax: Integrating Ajax with our scripts, and using it to generate content dynamically
  • Using nonces: Securing your WordPress plugins using nonces

Both jQuery and Ajax offer huge possibilities for plugin development. Making your plugins interact more with the users is definitely a trend to follow in the future.

The next step in our journey through WordPress plugin development will be a cool, Ajax-powered, Wall widget allowing users to leave comments much like a shoutbox.

主站蜘蛛池模板: 奉贤区| 印江| 凤台县| 海门市| 万盛区| 裕民县| 勃利县| 陇川县| 石台县| 奉新县| 兴海县| 云安县| 简阳市| 疏附县| 即墨市| 石屏县| 和硕县| 屯昌县| 兖州市| 宁波市| 疏附县| 洪江市| 大埔区| 陇川县| 哈尔滨市| 慈溪市| 甘孜| 平南县| 大丰市| 扎囊县| 奉新县| 鹿泉市| 遵义市| 舒城县| 民勤县| 尉犁县| 登封市| 屯留县| 鹤庆县| 桦南县| 三门县|