[wp-hackers] "best practice" for editing custom table

Lorin Rivers lrivers at gmail.com
Mon May 7 21:12:40 GMT 2007


Obviously, my question wasn't clear enough, sorry for that.

I'm competent enough in PHP to write my own code but I haven't done
much with forms interacting with databases.

In my situation, I'm well outside themes/templates domain and whatnot,
but not really into the plugin domain, either, though what I have
would be a good candidate for being one, if I had the time to devote
(which I don't).

Here's what I want to do:
Have a form that's part of the site that allows users and admins to
edit info in this custom table, but outside of the standard WP admin
UI. There's not a lot of documentation on this sort of thing in the
codex, which is why I asked here.

On 5/7/07, Jennifer Hodgdon <yahgrp at poplarware.com> wrote:
> > I've got a custom table for storing information about alumni. I want
> > to provide a method for editing an individual's data that's accessible
> > only to admins and the individual in question.
>
> Try the Codex:
>
> http://codex.wordpress.org/Adding_Administration_Menus
>
> Then you'll want to look at the function current_user_can(), and
> probably create your own special privilege to check whether the user
> is the correct one to edit the data.
>
> For future reference, the best starting point for dev questions is
> "Developer Documentation", which will lead you to "Plugin Resources",
> "Function Reference", etc.
>
>      Jennifer
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list