Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
3  
Don't ever edit core files :( –  helenhousandi Feb 20 '12 at 23:52
add comment

1 Answer

up vote 3 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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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