Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#16124 closed enhancement (invalid)

Strange hook name

Reported by: F J Kaiser Owned by:
Priority: normal Milestone:
Component: Post Types Version:
Severity: trivial Keywords: hook
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)

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

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