- WordPress 3 Plugin Development Essentials
- Brian Bondari Everett Griffiths
- 162字
- 2021-04-09 21:20:01
Summary
We've gone through a lot of topics in this chapter, and we've taken you step by step through a sensible development flow. Here's what we've covered:
- Structuring a plugin: How to prepare an outline of key components and implement them slowly, allowing you to test as you go
- Accessing post information: Different ways of obtaining data from the post such as title, permalink and content
- Checking WordPress version: How to check that our plugin is compatible with the user's version of WordPress
- Using WordPress hooks: How to use actions and filters to get to trigger functions in our plugin
- Include external JavaScript files in your plugins using WordPress'
wp_register_script()
andwp_enqueue_script()
functions
Now that we've learned a bit more about WordPress hooks, the API, and how to handle some of the external files, we are ready to look at some more complex code patterns. We will do this in the next chapter as we improve upon the built-in WordPress search feature.
推薦閱讀
- Excel圖表與表格實戰技巧精粹
- ANSYS19.0實例詳解
- Final Cut Pro X 影視包裝剪輯完全自學教程(培訓教材版)
- Autodesk Ecotect Analysis 2011綠色建筑分析應用
- AutoCAD Civil 3D 2018 場地設計實例教程
- 穿越Photoshop CC
- 鍵盤錄入技術(第2版)
- 老郵差數碼照片處理技法 圖層篇
- 數碼攝影后期處理秘笈:Photoshop CC專業調色(第2版)
- Vivado從此開始(進階篇)
- OpenCart 1.4 Template Design Cookbook
- 中文版Photoshop CS6從新手到高手(超值版)
- 蝶變:移動用戶體驗設計之道
- LaTeX論文寫作教程
- EJB 3.1 Cookbook