- WordPress 3 Plugin Development Essentials
- Brian Bondari Everett Griffiths
- 187字
- 2021-04-09 21:20:00
Chapter 3. Social Bookmarking
Now that we've covered the component parts of a WordPress plugin, it's time to write something more substantial. In this chapter, we will create a plugin that allows visitors to bookmark each of our posts using the social bookmarking service http://www.digg.com. We are going to learn a bit more about the WordPress API and by the time we're done, we will have in our toolbox a simple coding pattern that is applicable to many other plugins we may want to write, such as one that creates a Facebook "Like" button.
In this chapter, you will learn or review the following points:
- How to plan your plugin architecture and write code in a methodical and testable way
- How to use several WordPress API functions, such as how to retrieve the title and permalink URL of each post
- How to use WordPress hooks to execute your plugin code
- How to check the WordPress version
- How to include external JavaScript files
We're going to build this slowly and test it as we go so you can see how each component works. Let's get started!
推薦閱讀
- 自己動手寫分布式搜索引擎
- Object/Oriented Programming in ColdFusion
- 數碼攝影后期零基礎入門教程
- 從零開始學LATEX
- 3ds Max 2014從入門到精通
- 中文版Photoshop 2020基礎教程
- 零基礎學數碼攝影后期
- Photoshop+Adobe Camera Raw+Lightroom(攝影后期照片潤飾實戰)
- SketchUp/Piranesi印象彩繪表現項目實踐
- 碼上學會:中文版Creo 3.0機械設計全能一本通(雙色版)
- Designing and Implementing Linux Firewalls and QoS using netfilter, iproute2, NAT and l7/filter
- Moldflow 2021模流分析從入門到精通(升級版)
- 三維建模與3D打印從入門到精通
- Midjourney商業設計完全教程
- 跨境電商:速賣通搜索排名規則解析與SEO技術