Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#26893 closed enhancement (invalid)

Update the {old_status}_to_{new_status} hooks to be triggered for CPTs

Reported by: vegasgeek Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8
Component: Posts, Post Types Keywords:
Focuses: Cc:


Currently the {old_status}_to_{new_status} hooks are only associated with the default posts post type. It would be uber-handy if the hooks could also be associated with custom post types.

Change History (2)

#1 @nacin
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

These hooks fire for all post types. Something is probably wrong with your code if they are not working. :-)

#2 @nacin
5 years ago

#26892 was marked as a duplicate.

Note: See TracTickets for help on using tickets.