So I'm trying to create some custom fields for users. I need to give users access to a 30 day trial of some software and I want to keep track of that in the users page of administration panel. If the user is in the trail I want to add "Trial" at the top and "Yes" or "No" next to the username on the All Users page. I'm assuming this would be a core file somewhere, but I'm not sure which one.

link|improve this question

3  
Don't ever edit core files :( – helenhousandi Feb 20 at 23:52
feedback

1 Answer

up vote 2 down vote accepted

You can hook manage_users_columns to add (and I suppose remove) columns from the All users display. This tutorial details that.

You might be able to hook user_edit_form_tag to do the trial vs not trial at the top...but I'm not sure, you'd have to tinker with it. I think you'll probably end up having to use something else (WP_Error might be a good way to go), but that would be where I started.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.