User search within plugin
-
I’m writing a plugin that makes use of the user table. I want to allow search within it, but I’m not sure how to implement it, since the form action is not correctly set.
Location of plugin:
/wp-admin/admin.php?page=myplugin/myplugin-admin.php
If I set the form action as myplugin-admin.php I get an error because the resulting page URL is:
/wp-admin/myplugin-admin.php/?s=test
when it should be:
/wp-admin/admin.php?page=myplugin/myplugin-admin.php&s=test
Using
php_self
does not work. Anyone point me in the right direction? Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User search within plugin’ is closed to new replies.