WordPress.org

Ready to get started?Download WordPress

Forums

What if a plugin needs UI? (7 posts)

  1. steveminutillo
    Member
    Posted 10 years ago #

    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?

  2. unteins
    Member
    Posted 10 years ago #

    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....

  3. Chris J. Davis
    Member
    Posted 10 years ago #

    Yeah that was what I was going to suggest. :)

  4. steveminutillo
    Member
    Posted 10 years ago #

    I see! Nice trick!

  5. solarpunk
    Member
    Posted 10 years ago #

    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.

  6. Fahim
    Member
    Posted 10 years ago #

    My bad ... gave the wrong URL. It's corrected now :)

  7. steveminutillo
    Member
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.