[wp-trac] [WordPress Trac] #43643: Properly document the `$page_hook` action
WordPress Trac
noreply at wordpress.org
Tue Mar 27 11:58:20 UTC 2018
#43643: Properly document the `$page_hook` action
-------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Plugins | Version:
Severity: normal | Keywords: needs-patch
Focuses: docs |
-------------------------+-------------------------
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.
Refs:
* https://developer.wordpress.org/reference/hooks/page_hook/
* https://github.com/WordPress/wordpress-
develop/blob/c8fa6497aa6dc6d8a65c3fa84b862df343db5981/src/wp-
admin/admin.php#L233-L239
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43643>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list