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

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.

主站蜘蛛池模板: 全南县| 上蔡县| 阿拉善右旗| 顺义区| 绩溪县| 益阳市| 麟游县| 蓝田县| 屯留县| 平凉市| 正镶白旗| 衢州市| 宜兰县| 昌江| 威远县| 古蔺县| 茂名市| 遵化市| 福鼎市| 徐州市| 营口市| 门源| 贞丰县| 滨海县| 五家渠市| 天柱县| 金寨县| 丹凤县| 龙山县| 嘉义市| 赤壁市| 庆阳市| 文成县| 尚志市| 密云县| 砀山县| 拜城县| 海城市| 安溪县| 阳西县| 阳朔县|