- 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.
推薦閱讀
- TArch 8.5天正建筑軟件標準教程
- 四時風月繪:國風水墨CG插畫繪畫技法
- Authorware應用案例教程
- BPEL Cookbook: Best Practices for SOA/based integration and composite applications development
- Drools規則引擎技術指南
- 中文版CorelDRAW X8基礎培訓教程(全彩版)
- 跨境電商:速賣通搜索排名規則解析與SEO技術
- 3ds Max影視動畫角色設計技法教程
- JBoss AS 5 Performance Tuning
- 中文版Flash CC實例教程
- SPSS統計分析與應用
- SOLIDWORKS 2023中文版機械設計從入門到精通
- 剪映短視頻制作從入門到精通(手機版+電腦版)
- WordPress Multisite Administration
- 用友(T3)會計信息化軟件考前12小時