WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#16124 closed enhancement (invalid)

Strange hook name

Reported by: F J Kaiser 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)

#1 @greuben
11 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
11 years ago

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