#22170 closed defect (bug) (invalid)
before_delete_posts does not support custom post types
| Reported by: | ZaneMatthew | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 3.4.2 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
Just curious if someone can verify that the action 'before_delete_posts' does not appear to be supported by custom post types.
From what I'm seeing it doesn't support it.
http://core.trac.wordpress.org/browser/tags/3.4.2/wp-includes/post.php#L2022
Change History (3)
#2
@
14 years ago
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
register_post_type( 'test' ); $id = wp_insert_post( array( 'post_type' => 'test' ) ); var_dump( $id ); var_dump( did_action( 'before_delete_post' ) ); // 0 wp_delete_post( $id ); var_dump( did_action( 'before_delete_post' ) ); // 1
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Can you provide some code to reproduce the issue?