WordPress 2.x Hooks for Action - Comprehensive List for Plugin and Theme Developers在WordPress 2.x的鉤行動-綜合名單插件和主題發展
Comprehensive List of WordPress Action Hooks綜合清單WordPress的行動鉤
For WordPress Plugin and Theme Developers by為wordpress插件和主題,由發展商 Plugin Developer插件開發
This contains all the available action hooks (documented as well as undocumented) for WordPress plugin and theme developers.這包含了所有可用的行動鉤(記錄以及無證) wordpress插件和主題發展。 All available documentation on these hooks have been updated from WordPress Codex.所有可用的文件,這些彎鉤已更新由WordPress所法典。
Source file and line number information is provided to allow you to find more details about the hook.源文件和行號提供的資料,讓您可以找到更多有關鉤。 Please maximize your browser for better display.請最大限度地提高您的瀏覽器,為更好地展示。
Note: You may also want to refer注意:您可能還需要參考 WordPress 2.x Filters - Comprehensive List for Plugin and Theme Developers 在WordPress 2.x的過濾器-全面名單插件和主題發展 . 。
| No.否。 | Action行動 | Source File源文件 | Line線 No.否。 | Comments評論 |
|---|---|---|---|---|
| 1 | wp_logout | wp-login.php 可濕性粉劑- login.php | 25 25 | |
| 2 | lost_password | wp-login.php 可濕性粉劑- login.php | 38 38 | |
| 3 | retreive_password | wp-login.php 可濕性粉劑- login.php | 100 100 | |
| 4 | retrieve_password | wp-login.php 可濕性粉劑- login.php | 101 101 | |
| 5 | password_reset | wp-login.php 可濕性粉劑- login.php | 137 137 | |
| 6 | wp_authenticate | wp-login.php 可濕性粉劑- login.php | 189 189 | |
| 7 | wp_login | wp-login.php 可濕性粉劑- login.php | 201 201 | |
| 8 | rss_head | wp-rss.php 可濕性粉劑- rss.php | 22 22 | |
| 9 | rss_item | wp-rss.php 可濕性粉劑- rss.php | 33 33 | |
| 10 | template_redirect | wp-includes\template-loader.php 可濕性粉劑-包括\模板loader.php | 3 3 | No否 function all_on_one () {功能all_on_one ( ) ( |
| 11 | wp_meta | wp-includes\template-functions-general.php 可濕性粉劑-包括\模板功能- general.php | 59 59 | No否 parameter.參數。 Executes in the執行,在 section of the included Theme’s一節所包含的主題的 |
| 12 | mce_options | wp-includes\js\tinymce\tiny_mce_gzip.php 可濕性粉劑-包括\ js \ tinymce \ tiny_mce_gzip.php | 144 144 | |
| 13 | tinymce_before_init | wp-includes\js\tinymce\tiny_mce_gzip.php 可濕性粉劑-包括\ js \ tinymce \ tiny_mce_gzip.php | 150 150 | |
| 14 | profile_update | wp-includes\registration-functions.php 可濕性粉劑-包括\登記functions.php | 76 76 | |
| 15 | user_register | wp-includes\registration-functions.php 可濕性粉劑-包括\登記functions.php | 78 78 | |
| 16 | private_to_published | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 175 175 | Receives收到 the post ID as a parameter.郵政ID作為一個參數。 Executes when a post is moved from private to published執行時,一個職位是由私人出版 status.身份。 |
| 17 | edit_post | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 178 178 | Receives收到 the post ID as a parameter.郵政ID作為一個參數。 Executes every time a post is edited.每一次執行後是編輯。 |
| 18 | publish_post | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 182 182 | Receives收到 the post ID as a parameter.郵政ID作為一個參數。 Executes when a post is saved and its status is set to執行時,後保存,它的地位是設定為 "publish", regardless of its prior setting. “發布” ,不論其事先設定。 NOTE: to add a hook to this注意:如果要添加一個鉤來,這 action in 1.2, be sure to specify a priority between 0 and 9.行動在1.2 ,一定要指定一個優先介於0和9 。 The generic_ping hook該generic_ping鉤 is buggy and prevents any lesser priority hooks from working.是漏洞百出,並防止任何較輕的優先鉤從工作。 |
| 19 | save_post | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 206 206 | Receives收到 the post ID as a parameter.郵政ID作為一個參數。 Executes when a post is saved to the database.執行時,後保存到數據庫中。 |
| 20 | wp_insert_post | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 207 207 | |
| 21 | edit_attachment | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 342 342 | |
| 22 | add_attachment | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 344 344 | |
| 23 | delete_attachment | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 380 380 | |
| 24 | delete_post | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 538 538 | Receives收到 the post ID as a parameter.郵政ID作為一個參數。 Executes whenever a post is deleted.每當執行後刪除。 |
| 25 | wp_blacklist_check | wp-includes\functions-post.php 可濕性粉劑-包括\職能- post.php | 642 642 | |
| 26 | parse_query | wp-includes\classes.php 可濕性粉劑-包括\ classes.php | 86 86 | |
| 27 | parse_query | wp-includes\classes.php 可濕性粉劑-包括\ classes.php | 238 238 | |
| 28 | pre_get_posts | wp-includes\classes.php 可濕性粉劑-包括\ classes.php | 262 262 | |
| 29 | loop_start | wp-includes\classes.php 可濕性粉劑-包括\ classes.php | 699 699 | |
| 30 | loop_end | wp-includes\classes.php 可濕性粉劑-包括\ classes.php | 706 706 | |
| 31 | generate_rewrite_rules | wp-includes\classes.php 可濕性粉劑-包括\ classes.php | 1323 1323 | No否 parameter.參數。 Executes whenever the rewrite rules are recomputed.執行時,重寫規則是重新。 To modify the computed修改電腦 rules, use the filter rewrite_rules_array instead.規則,使用過濾器rewrite_rules_array不是。 |
| 32 | comment_post | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 52 52 | Receives收到 the comment ID as a parameter.評論ID作為一個參數。 Executes when a comment is added through wp-comments.php.執行時的評論是補充,通過可濕性粉劑- comments.php 。 |
| 33 | comment_flood_trigger | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 126 126 | |
| 34 | edit_comment | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 191 191 | Receives收到 the comment ID as a parameter.評論ID作為一個參數。 Executes whenever a comment is edited.執行時的評論是編輯。 |
| 35 | delete_comment | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 198 198 | Receives收到 the comment ID as a parameter.評論ID作為一個參數。 Executes when a comment is deleted.執行時,評論被刪除。 |
| 36 | wp_set_comment_status | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 209 209 | Receives收到 the comment ID as a parameter.評論ID作為一個參數。 Executes when the comment status changes.執行時,評論的地位的變化。 |
| 37 | pre_ping | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 635 635 | |
| 38 | wp_set_comment_status | wp-includes\comment-functions.php 可濕性粉劑-包括\評論- functions.php | 794 794 | |
| 39 | wp_head | wp-includes\functions.php 可濕性粉劑-包括\ functions.php | 1432 1432 | No否 parameter. Template tag. Executes in the參數。 模板標記。執行,在 section.一節。 Useful for insertion有用的插入 of additional content like metatags or javascript.其他內容一樣,中繼或JavaScript 。 |
| 40 | wp_footer | wp-includes\functions.php 可濕性粉劑-包括\ functions.php | 1436 1436 | No否 parameter. Template tag. Executes just before the end of the <body> tag.參數。 模板標記。執行只是年底前的<BODY>標記。 Useful for insertion of additional content or statistics code like Google Analytics.有用的插入額外的內容或統計代碼,像Google分析。 |
| 41 | comment_form | wp-content\themes\classic\comments-popup.php 可濕性粉劑內容\主題\經典\評論- popup.php | 86 86 | Receives收到 the comment’s post ID as a parameter.評論後的ID作為一個參數。 Template tag.模板標記。 Executes after displaying the執行後,顯示 comment form for a post that allows comments.評論形式的一個職位,允許評論。 |
| 42 | comment_form | wp-content\themes\classic\comments.php 可濕性粉劑內容\主題\經典\ comments.php | 67 67 | |
| 43 | comment_form | wp-content\themes\default\comments-popup.php 可濕性粉劑內容\主題\默認\評論- popup.php | 86 86 | |
| 44 | comment_form | wp-content\themes\default\comments.php 可濕性粉劑內容\主題\默認\ comments.php | 98 98 | |
| 45 | rdf_ns | wp-rdf.php 可濕性粉劑- rdf.php | 21 21 | |
| 46 | rdf_header | wp-rdf.php 可濕性粉劑- rdf.php | 32 32 | |
| 47 | rdf_item | wp-rdf.php 可濕性粉劑- rdf.php | 54 54 | |
| 48 | comment_id_not_found | wp-comments-post.php 可濕性粉劑-評論- post.php | 11 11 | Receives收到 the comment’s post ID as a parameter.評論後的ID作為一個參數。 Executes when attempting to display the comment執行時,企圖以顯示評論 form for a post that does not exist.表格後不存在。 |
| 49 | comment_closed | wp-comments-post.php 可濕性粉劑-評論- post.php | 14 14 | Receives收到 the comment’s post ID as a parameter.評論後的ID作為一個參數。 Executes when attempting to display the comment執行時,企圖以顯示評論 form for a post that has closed comments.形式的帖子已關閉的意見。 |
| 50 | comment_on_draft | wp-comments-post.php 可濕性粉劑-評論- post.php | 17 17 | |
| 51 | pingback_post | xmlrpc.php xmlrpc.php | 1236 1236 | Receives收到 the comment ID as a parameter.評論ID作為一個參數。 Executes when a comment is added via XMLRPC.執行時的評論是補充,通過xmlrpc的。 |
| 52 | publish_phone | wp-mail.php 可濕性粉劑- mail.php | 146 146 | Receives收到 the post ID as a parameter.郵政ID作為一個參數。 Executes when a post is added via wp-mail.php.執行時,一個職位是補充,通過可濕性粉劑- mail.php 。 |
| 53 | rss2_ns | wp-rss2.php 可濕性粉劑- rss2.php | 19 19 | |
| 54 | rss2_head | wp-rss2.php 可濕性粉劑- rss2.php | 29 29 | |
| 55 | rss2_item | wp-rss2.php 可濕性粉劑- rss2.php | 52 52 | |
| 56 | edit_form_advanced | wp-admin\edit-form-advanced.php 可濕性粉劑管理員\編輯形式- advanced.php | 216 216 | No否 parameter.參數。 Executes during the display of the admin panel’s advanced editing page,執行期間,展示管理小組的高級編輯網頁, just before the前 is closed that contains the post content textarea.是封閉,包含的內容後文本。 Useful有用 for inserting additional input fields into the advanced editing form.插入額外的投入領域進入先進的編輯形式。 |
| 57 | admin_menu | wp-admin\menu.php 可濕性粉劑管理員\ menu.php | 57 57 | No否 parameter.參數。 Executes after the basic admin panel menu structure is in place.執行後的基本管理面板的菜單結構是在地方。 Useful有用 for adding additional menus to the admin panel.為增加額外的菜單管理面板。 |
| 58 | admin_head | wp-admin\admin-header.php 可濕性粉劑管理員\管理- header.php | 312 312 | No否 parameter.參數。 Executes in the執行,在 section of the admin panel.部分管理面板。 Useful for insertion有用的插入 of additional content.附加內容。 |
| 59 | personal_options_update | wp-admin\profile-update.php 可濕性粉劑管理員\簡介- update.php | 23 23 | |
| 60 | activate_ | wp-admin\plugins.php 可濕性粉劑管理員\ plugins.php | 14 14 | |
| 61 | deactivate_ | wp-admin\plugins.php 可濕性粉劑管理員\ plugins.php | 21 21 | |
| 62 | manage_posts_custom_column | wp-admin\edit.php 可濕性粉劑管理員\ edit.php | 218 218 | |
| 63 | delete_comment | wp-admin\post.php 可濕性粉劑管理員\ post.php | 232 232 | |
| 64 | check_passwords | wp-admin\admin-functions.php 可濕性粉劑管理員\管理- functions.php | 388 388 | |
| 65 | check_admin_referer | wp-admin\admin-functions.php 可濕性粉劑管理員\管理- functions.php | 971 971 | |
| 66 | switch_theme | wp-admin\admin-functions.php 可濕性粉劑管理員\管理- functions.php | 1126 1126 | |
| 67 | switch_theme | wp-admin\admin-functions.php 可濕性粉劑管理員\管理- functions.php | 1133 1133 | |
| 68 | edit_page_form | wp-admin\edit-page-form.php 可濕性粉劑管理員\編輯頁form.php | 214 214 | No否 parameter.參數。 Executes inside the執行內 |
| 69 | show_user_profile | wp-admin\profile.php 可濕性粉劑管理員\ profile.php | 105 105 | |
| 70 | profile_personal_options | wp-admin\profile.php 可濕性粉劑管理員\ profile.php | 114 114 | |
| 71 | edit_user_profile | wp-admin\user-edit.php 可濕性粉劑管理員\用戶edit.php | 168 168 | |
| 72 | activity_box_end | wp-admin\index.php 可濕性粉劑管理員\的index.php | 113 113 | |
| 73 | admin_footer | wp-admin\bookmarklet.php 可濕性粉劑管理員\ bookmarklet.php | 101 101 | No否 parameter.參數。 Executes at the end of the admin panel inside the body tag.執行在年底管理面板身體內標記。 Useful for有用 insertion of additional content.插入額外的內容。 |
| 74 | edit_category | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 123 123 | |
| 75 | create_category | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 126 126 | |
| 76 | add_category | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 127 127 | |
| 77 | delete_category | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 175 175 | |
| 78 | delete_user | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 238 238 | |
| 79 | edit_link | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 297 297 | |
| 80 | add_link | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 299 299 | |
| 81 | delete_link | wp-admin\admin-db.php 可濕性粉劑管理員\管理- db.php | 323 323 | |
| 82 | simple_edit_form | wp-admin\edit-form.php 可濕性粉劑管理員\編輯form.php | 70 70 | No否 parameter.參數。 Executes during the display of the admin panel’s simple editing page, just執行期間,展示管理小組的簡單編輯網頁中,只要 before the前 is closed that contains the post content textarea.是封閉,包含的內容後文本。 Useful for有用 inserting additional input fields into the simple editing form.插入額外的投入領域納入簡單的編輯形式。 |
| 83 | admin_footer | wp-admin\admin-footer.php 可濕性粉劑管理員\管理- footer.php | 9 9 | |
| 84 | switch_theme | wp-admin\themes.php 可濕性粉劑管理員\ themes.php | 14 14 | Receives收到 the name of the current theme as a parameter.的名稱,目前的主題作為一個參數。 Executes when the blog theme is changed.執行時,博客的主題是變化。 |
| 85 | trackback_post | wp-trackback.php 可濕性粉劑- trackback.php | 95 95 | Receives收到 the comment ID as a parameter.評論ID作為一個參數。 Executes when a comment is added via trackback.php.執行時的評論是補充,通過trackback.php 。 |
| 86 | atom_ns | wp-atom.php 可濕性粉劑- atom.php | 17 17 | |
| 87 | atom_head | wp-atom.php 可濕性粉劑- atom.php | 25 25 | |
| 88 | atom_entry | wp-atom.php 可濕性粉劑- atom.php | 42 42 | |
| 89 | core_files_loaded | wp-settings.php 可濕性粉劑- settings.php | 164 164 | |
| 90 | plugins_loaded | wp-settings.php 可濕性粉劑- settings.php | 187 187 | |
| 91 | shutdown關機 | wp-settings.php 可濕性粉劑- settings.php | 222 222 | No否 parameter.參數。 Executes when the page output is complete.執行時,頁面輸出是完成。 |
| 92 | init init的 | wp-settings.php 可濕性粉劑- settings.php | 227 227 | Executes執行 after WordPress has finished loading but before any headers are sent.後的WordPress已完成加載,但之前的任何頭發送。 Useful for intercepting有用的攔截 $_GET or $_POST triggers.元_get或全局變量$ _POST誘因。 |
Filed under提起下 CMS Software CMS軟件 , , Headline News頭條新聞 , , How To如何 , , Open Source Software開放源碼軟件 , , PHP PHP的 , , Pro Blogging贊成Blogging , , Tech Note技術說明 , , Web網頁 , , Web Services Web服務 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |



December 28th, 2005 at 1:27 am 2005年12月28日在上午01時27分
[...] View the list … [...] [ … … ]檢視清單… [ … … ]