[wp-trac] [WordPress Trac] #25376: Hook Docs: wp-includes/post.php

WordPress Trac noreply at wordpress.org
Wed Sep 25 17:04:01 UTC 2013


#25376: Hook Docs: wp-includes/post.php
--------------------------+------------------
 Reporter:  DrewAPicture  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Inline Docs   |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by DrewAPicture):

 * keywords:  needs-patch => has-patch
 * milestone:  Awaiting Review => 3.7


Old description:

> Patch forthcoming.

New description:

 Attached patch documents the following hooks (all):

 Actions:
 * `registered_post_type`
 * `before_delete_post`
 * `delete_post`
 * `deleted_post`
 * `after_delete_post`
 * `wp_trash_post`
 * `trashed_post`
 * `untrash_post`
 * `untrashed_post`
 * `trash_post_comments`
 * `trashed_post_comments`
 * `untrash_post_comments`
 * `untrashed_post_comments`
 * `pre_post_update`
 * `edit_post`
 * `post_updated`
 * `save_post_$post_type`
 * `save_post`
 * `wp_insert_post`
 * `edit_post`
 * `save_post_$post_type` (duplicate)
 * `save_post` (duplicate)
 * `wp_insert_post` (duplicate)
 * `transition_post_status`
 * `$old_status_to_$new_status`
 * `$new_status_to_$post_type`
 * `edit_attachment`
 * `add_attachment`
 * `delete_attachment`
 * `delete_post`
 * `deleted_post`
 * `clean_post_cache`
 * `clean_page_cache`
 * `clean_attachment_cache`
 * `private_to_published`
 * `xmlrpc_publish_post`

 Filters:
 * `get_attached_file`
 * `update_attached_file`
 * `_wp_relative_upload_path`
 * `post_type_labels_$post_type`
 * `edit_$field`
 * `$field_no_prefix_edit_pre`
 * `edit_post_$field`
 * `pre_$field`
 * `$field_no_prefix_save_pre`
 * `pre_post_$field`
 * `$field_pre`
 * `$field`
 * `post_$field`
 * `wp_count_posts` (existing)
 * `wp_count_attachments` (existing)
 * `post_mime_types`
 * `wp_insert_post_empty_content`
 * `wp_insert_post_parent`
 * `wp_insert_post_data`
 * `wp_unique_post_slug_is_bad_attachment_slug`
 * `wp_unique_post_slug_is_bad_hierarchical_slug`
 * `wp_unique_post_slug_is_bad_flat_slug`
 * `wp_unique_post_slug`
 * `add_ping`
 * `get_enclosed`
 * `get_pung`
 * `get_to_ping`
 * `get_pages`
 * `get_pages` (duplicate)
 * `get_pages` (duplicate)
 * `wp_delete_file`
 * `wp_delete_file` (duplicate)
 * `wp_delete_file` (duplicate)
 * `wp_delete_file` (duplicate)
 * `wp_get_attachment_metadata`
 * `wp_update_attachment_metadata`
 * `wp_get_attachment_url`
 * `wp_get_attachment_thumb_file`
 * `wp_get_attachment_thumb_url`
 * `icon_dir`
 * `icon_dir_uri`
 * `icon_dirs`
 * `wp_mime_type_icon`
 * `get_lastpostdate`
 * `get_lastpostmodified`

--

Comment:

 [attachment:25376.diff] documents all actions and filters in the file.

 TODO:
 * @since versions for all of the above
 * Clarify 'enclosure'-related hook docs

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25376#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list