- WordPress Top Plugins
- Brandon Corbin
- 165字
- 2021-04-13 17:05:51
WordPress has designated areas that developers can leverage within their plugin; these areas are rightfully named Hooks. Currently, the two types of hooks available are Actions and Filters.
An Action is a hook that's triggered during common blogging events such as creating a post or deleting a comment. For example, the publish_post
action is triggered whenever a post is finally published. Similarly, the wp_insert_comment
is fired each time a website visitor leaves a comment.
A Filter, like an Action, is a hook that plugin developers use to modify various types of data before it's added to your database or displaying it to the end user. For example, the the_content
filter is applied whenever your blog renders a "Posts" content. The content_save_pre
filter is applied right before a blog post's body content is saved to a database.
You can learn more about Actions, Filters, and WordPress Plugins in general at:
- Plugin API: http://codex.Wordpress.org/Plugin_API
- Writing a Plugin: http://codex.Wordpress.org/Writing_a_Plugin
- Actions: http://codex.Wordpress.org/Plugin_API/Action_Reference
- Plugin Coding Standards: http://codex.Wordpress.org/WordPress_Coding_Standards
- Learning SQL Server 2008 Reporting Services
- 云化虛擬現(xiàn)實技術(shù)與應用
- 剪映專業(yè)版(電腦版)視頻剪輯全攻略:音效添加+轉(zhuǎn)場特效+視頻制作
- Blender 3D 2.49 Architecture, Buidlings, and Scenery
- 新編三維CAD習題集
- 24小時全速學會Photoshop 2021
- Photoshop CC入門與進階
- Illustrator平面設計立體化教程:Illustrator 2021(微課版)
- 從零開始:AutoCAD 2010中文版建筑制圖基礎培訓教程(第2版)
- SOLIDWORKS中文版實用教程
- 蝶變:移動用戶體驗設計之道
- JBoss AS 5 Performance Tuning
- 3ds Max-Photoshop游戲模型制作全攻略
- AutoCAD 2020中文版從入門到精通(升級版)
- Photoshop CC 2015中文版實用教程(第7版)