Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#16124 closed enhancement (invalid)

Strange hook name

Reported by: f-j-kaiser's profile F J Kaiser Owned by:
Milestone: Priority: normal
Severity: trivial Version:
Component: Posts, Post Types Keywords: hook
Focuses: Cc:


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)

#1 @greuben
12 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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}.

#2 @westi
12 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.