Opened 11 years ago
Closed 11 years ago
#25376 closed defect (bug) (fixed)
Hook Docs (82): wp-includes/post.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch commit dev-reviewed |
Focuses: | docs | Cc: |
Description (last modified by )
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
Attachments (8)
Change History (23)
#1
@
11 years ago
- Summary changed from Hood Docs: wp-includes/post.php to Hook Docs: wp-includes/post.php
#2
@
11 years ago
- Description modified (diff)
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 3.7
25376.diff documents all actions and filters in the file.
TODO:
- @since versions for all of the above
- Clarify 'enclosure'-related hook docs
#3
@
11 years ago
- Milestone changed from 3.7 to Awaiting Review
This needs some work yet following feedback from nacin and adamsilverstein. Backing off the milestone for the time being.
#5
@
11 years ago
- Summary changed from Hook Docs: wp-includes/post.php to Hook Docs (82): wp-includes/post.php
This ticket was mentioned in IRC in #wordpress-dev by DrewAPicture. View the logs.
11 years ago
This ticket was mentioned in IRC in #wordpress-dev by DrewAPicture. View the logs.
11 years ago
#12
@
11 years ago
- Keywords dev-feedback added
- Milestone changed from Awaiting Review to 3.9
25376.5.diff should cover the rest of wpinc/post.php.
#13
@
11 years ago
- Keywords commit added; dev-feedback removed
25376.6.diff incorporates feedback from nacin in IRC
untrash_post_comments
and untrashed_post_comments
filters:
- Comments are being restored for *a post*
wp_unique_post_slug_is_bad_attachment_slug
, wp_unique_post_slug_is_bad_hierarchical_slug
, and wp_unique_post_slug_is_bad_flat_slug
filters:
- Standardizes on "bad" terminology instead of "poor"
First pass (all hooks)