- 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!
推薦閱讀
- PS是這樣玩的:輕松掌握 Photoshop 通關(guān)秘籍
- 現(xiàn)代企業(yè)應(yīng)用設(shè)計(jì)指南
- 中文版Photoshop入門(mén)與提高(CS6版)
- Object/Oriented Programming in ColdFusion
- Excel 2010 商務(wù)數(shù)據(jù)分析與處理(第2版)
- Photoshop CC中文版基礎(chǔ)與實(shí)例教程(第7版)
- 邊做邊學(xué):Photoshop+CorelDRAW綜合實(shí)訓(xùn)教程
- Jetpack Compose:Android全新UI編程
- 會(huì)聲會(huì)影視頻編輯實(shí)戰(zhàn)秘技250招
- CINEMA 4D R20完全實(shí)戰(zhàn)技術(shù)手冊(cè)
- RAW 數(shù)碼底片演義
- Spark Cookbook 中文版
- CAXA 實(shí)體設(shè)計(jì)2013案例課堂
- AI繪畫(huà)基礎(chǔ)與商業(yè)實(shí)戰(zhàn)
- Quality Assurance for Dynamics AX-Based ERP Solutions