Opened 8 years ago
Closed 8 years ago
#38428 closed defect (bug) (invalid)
admin_page_access_denied action never called
Reported by: | solo14000 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6.1 |
Component: | Administration | Keywords: | |
Focuses: | docs, administration | Cc: |
Description
Hello,
I have setup my own custom WP theme.
I'm trying to customize denied access to WP admin by registering my own callback on the 'admin_page_access_denied' hook.
But unfortunately, my callback is never called.
I have simply added the code snippet provided as example in the Codex (https://codex.wordpress.org/Plugin_API/Action_Reference/admin_page_access_denied) in my functions.php.
Can anyone confirm this?
Thanks
Change History (3)
#2
in reply to:
↑ 1
@
8 years ago
Replying to SergeyBiryukov:
it has never been a part of any WordPress release.
Hmm, I can see the action in trunk/src/wp-admin/includes/menu.php?rev=37914&marks=335-340#L335.
Note: See
TracTickets for help on using
tickets.
Interesting. Codex mentions that it's available since WordPress 2.5, but as far as I can tell, it has never been a part of any WordPress release.
I'd suggest removing the Codex page.