• Is there a way within the API to give a plugin a UI? I’d like to be able to write plugins that are configurable, but I don’t want users to have to open up the code and modify values in there. I want a link to my plugin’s configuration page to somehow appear as part of the WordPress admin pages.
    Possible? Anybody know of any plugins that have a UI? How was it done?

Viewing 6 replies - 1 through 6 (of 6 total)
  • As far as I know this is one of those areas where the plugin API is pretty weak. Actually, the API is almost non existant for backend.
    However, you might be able to add an element to the $menu array, though I am not sure if that is even possible….

    Yeah that was what I was going to suggest. 🙂

    Thread Starter steveminutillo

    (@steveminutillo)

    I see! Nice trick!

    fahim,
    The link does work for me. i get error message
    Not Found
    The requested URL /WPBlacklist12.zip was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    My bad … gave the wrong URL. It’s corrected now 🙂

    Thread Starter steveminutillo

    (@steveminutillo)

    There is another way of doing this, I just realized. If your plugin has very simple options, you can just add the appropriate rows to the “option” tables, and a new sub-tab will appear on the Options tab on the Admin screens, with an admin page for your options auto-generated. You just need to create a new option group, and define some options within it.
    For plugins that only need very simple configuration settings, this might be a good way to go.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What if a plugin needs UI?’ is closed to new replies.