WordPress.org

Ready to get started?Download WordPress

Forums

User search within plugin (2 posts)

  1. Tom(dB)
    Member
    Posted 5 years ago #

    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.

  2. Tom(dB)
    Member
    Posted 5 years ago #

    really, no one can point me in the right direction? What about a plugin that has search within it so i can use it as an example.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags