- WordPress Plugin Development Beginner's Guide
- Vladimir Prelovac
- 190字
- 2021-05-21 20:12:19
Summary
In this chapter, we created a working, useful, and attractive WordPress plugin from scratch. Our plugin now displays a fully functional Digg button.
We learned how to extract information using WordPress API and how to use CSS to improve the appearance of our plugin. We also investigated some more advanced WordPress functionalities such as hooks.
Specifically, we covered:
- Creating a plugin: How to fill in the information header and create a simple plugin template
- Checking WordPress version: How to check that our plugin is compatible with the user’s version of WordPress
- Modifying theme files: How to safely add functions to the theme files when we need to
- Accessing post information: Different ways of obtaining data from the post such as title, permalink and content
- Using WordPress hooks: How to use actions and filters to get things done from within our plugin (and not modifying the theme for instance)
Now that we've learned about WordPress hooks, we are ready to expand our knowledge and learn about Widgets. In the next chapter we will create a cool Wall widget for users to write comments directly on our blog sidebar.
推薦閱讀
- AutoCAD 2010中文版基礎教程(第2版)
- Midjourney AI繪畫藝術創作教程:關鍵詞設置、藝術家與風格應用175例
- Joomla! 1.5 SEO
- 從零開始:Flash CS6中文版基礎培訓教程
- CorelDRAW服裝設計實用教程(第四版)
- Python Text Processing with NLTK 2.0 Cookbook: LITE
- Ogre 3D 1.7 Beginner's Guide
- ANSYS 15.0有限元分析自學手冊
- BlackBerry Enterprise Server 5 Implementation Guide
- 碼上學會:中文版Creo 3.0機械設計全能一本通(雙色版)
- ASP.NET Core 3從入門到實戰
- Excel 2013公式·函數與數據分析
- 中文版3ds Max 2014-VRay效果圖制作完全自學教程
- CINEMA 4D新手快速進階實例教學
- 中文版3ds Max 2016/VRay效果圖制作實戰基礎教程(全彩版)