Title: plugin admin page hook has no action ?
Last modified: August 21, 2016

---

# plugin admin page hook has no action ?

 *  [KimTasker](https://wordpress.org/support/users/kimtasker/)
 * (@kimtasker)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/plugin-admin-page-hook-has-no-action/)
 * Hi all,
 * I just fell upon this issue while developping a new plugin. It’s the first time
   I see this :
 * when I send a form I have on one of my admin pages for this plugin, I get this
   error : **Cannot load _my-plugin-page_** , _my-plugin-page_ being the name of
   the page I’m trying access, which is actually the same where the form was sent
   from.
 * After some investigation it appears that _if ( has\_action($hook) )_ in the _get\
   _plugin\_page\_hook_ function (in wp-admin/includes/plugin.php) returns _false_.
 * I’m rather sceptical as I can properly access the page from my admin menu link
 * After further testing, I discovered the problem may be caused by an element in
   my form : _<input type=”hidden” name=”post\_type” value=”my-value” />_
    as I 
   no longer have the issue after removing it. So I guess my problem can be considered‘
   resolved’ as I don’t need this data anyway…
 * But, I’d really like to understand
    Why would a $_POST element named ‘post_type’
   break the access to my plugin admin page ? What does one thing have to do with
   the other ? Is this normal behavior ?
 * If someone could give me insight here, it would be greatly appreciated, thank
   you 😉

The topic ‘plugin admin page hook has no action ?’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [KimTasker](https://wordpress.org/support/users/kimtasker/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/plugin-admin-page-hook-has-no-action/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
