- 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
- PrestaShop 1.3 Theming – Beginner’s Guide
- iOS應用逆向與安全之道
- Flash CC從入門到精通
- FreeSWITCH 1.0.6
- 穿越Photoshop CC
- 零基礎學后期:Photoshop+Lightroom數碼照片處理從新手到高手
- 3ds Max/MaxScript印象 腳本動畫制作基礎與應用
- Premiere CC視頻編輯入門與應用
- Vue.js實戰
- 中文版3ds Max 2020基礎教程
- 中文版AutoCAD自學經典
- Building Enterprise Ready Telephony Systems with sipXecs 4.0
- Instant MDX Queries for SQL Server 2012
- 手把手教你學成Excel高手
- The 3CX IP PBX Tutorial