Making WordPress.org

Opened 5 years ago

Closed 5 years ago

#4783 closed defect (bug) (fixed)

Invalid hooks listed in Code Reference

Reported by: johnbillion's profile johnbillion Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

When viewing the https://developer.wordpress.org/reference/hooks/ page, the first three hooks listed are invalid and don't exist. Clicking through to their source on Trac reveals that they no longer exist.

I think all three of these can be deleted. The latter two at least have been replaced by hooks with interpolated names:

I'm unsure about the $per_page hook.

Change History (3)

#1 @pbiron
5 years ago

I think $per_page is an old remnant left over from [28347].

The correct hook is now edit_{$post_type}_per_page.

Last edited 5 years ago by pbiron (previous) (diff)

#2 @coffee2code
5 years ago

  • Owner set to coffee2code
  • Status changed from new to accepted

#3 @coffee2code
5 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

Thanks!

All three pages have been removed and redirected to their replacements.

Note: See TracTickets for help on using tickets.