#16124 closed enhancement (invalid)
Strange hook name
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | |
Component: | Posts, Post Types | Keywords: | hook |
Focuses: | Cc: |
Description
In /core_root/wp-include/post.php line 884 is the following hook:
add_action( 'future_' . $post_type, '_future_post_hook', 5, 2 );
Example: future_events_future_post_hook
Looks pretty strange. I hope that one isn't used to often, so the name can still be changed...
Change History (2)
Note: See
TracTickets for help on using
tickets.
It's add_action not do_action. do_action names the hook. The hook name is not future_{$post_type}_future_post_hook, it is future_{$post_type}.