Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#43643 new enhancement

Properly document the `$page_hook` action

Reported by: johnbillion Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Plugins Keywords: has-patch 2nd-opinion
Focuses: docs Cc:


The $page_hook action lacks meaningful documentation. This is the only action in core that uses a completely dynamic hook name, which means it needs to be well documented to help developers who may wish to use it.

Most of the documentation from the load-{$page_hook} action immediately above it can be reused, and then the @ignore tag can be removed so the unnecessary private flag gets removed from the developer reference.


Attachments (1)

43643.diff (939 bytes) - added by johnbillion 3 months ago.

Download all attachments as: .zip

Change History (2)

3 months ago

#1 @johnbillion
3 months ago

  • Keywords has-patch 2nd-opinion added; needs-patch removed

So, this hook is used by core itself to load the plugin page, but there's technically no reason for it to be ignored / marked as private. Thoughts?

Note: See TracTickets for help on using tickets.