Opened 12 years ago
Closed 12 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_typebefore_delete_postdelete_postdeleted_postafter_delete_postwp_trash_posttrashed_postuntrash_postuntrashed_posttrash_post_commentstrashed_post_commentsuntrash_post_commentsuntrashed_post_commentspre_post_updateedit_postpost_updatedsave_post_$post_typesave_postwp_insert_postedit_postsave_post_$post_type(duplicate)save_post(duplicate)wp_insert_post(duplicate)transition_post_status$old_status_to_$new_status$new_status_to_$post_typeedit_attachmentadd_attachmentdelete_attachmentdelete_postdeleted_postclean_post_cacheclean_page_cacheclean_attachment_cacheprivate_to_publishedxmlrpc_publish_post
Filters:
get_attached_fileupdate_attached_file_wp_relative_upload_pathpost_type_labels_$post_typeedit_$field$field_no_prefix_edit_preedit_post_$fieldpre_$field$field_no_prefix_save_prepre_post_$field$field_pre$fieldpost_$fieldwp_count_posts(existing)wp_count_attachments(existing)post_mime_typeswp_insert_post_empty_contentwp_insert_post_parentwp_insert_post_datawp_unique_post_slug_is_bad_attachment_slugwp_unique_post_slug_is_bad_hierarchical_slugwp_unique_post_slug_is_bad_flat_slugwp_unique_post_slugadd_pingget_enclosedget_pungget_to_pingget_pagesget_pages(duplicate)get_pages(duplicate)wp_delete_filewp_delete_file(duplicate)wp_delete_file(duplicate)wp_delete_file(duplicate)wp_get_attachment_metadatawp_update_attachment_metadatawp_get_attachment_urlwp_get_attachment_thumb_filewp_get_attachment_thumb_urlicon_diricon_dir_uriicon_dirswp_mime_type_iconget_lastpostdateget_lastpostmodified
Attachments (8)
Change History (23)
#1
@
12 years ago
- Summary changed from Hood Docs: wp-includes/post.php to Hook Docs: wp-includes/post.php
#2
@
12 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
@
12 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
@
12 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.
12 years ago
This ticket was mentioned in IRC in #wordpress-dev by DrewAPicture. View the logs.
12 years ago
#12
@
12 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
@
12 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)