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

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.

主站蜘蛛池模板: 临江市| 沙坪坝区| 施甸县| 天峻县| 桓台县| 晋城| 阳东县| 乌审旗| 泗水县| 利津县| 莱阳市| 奉节县| 额敏县| 岫岩| 格尔木市| 菏泽市| 瑞丽市| 个旧市| 冀州市| 峨边| 石景山区| 霸州市| 西宁市| 施秉县| 盖州市| 红桥区| 永胜县| 黄山市| 正蓝旗| 北海市| 明溪县| 延寿县| 台中市| 年辖:市辖区| 若羌县| 邛崃市| 乌海市| 永川市| 库车县| 门头沟区| 祁阳县|