Hi Marcus,
Groups is not a custom post type, instead it is using its own db tables.
Perhaps if you may provide some more details on what you’re trying to do, we might able to help you further with your request.
Kind regards,
George
Thanks for your reply man. Here is the thing:
The groups have 6 columns in database, right? (id, parent_id, creator_id, datetime, name and description). What I need is to create a new one called “creative_calls”.
Because in my website we have this “creative director call” service and we have some clients that need to create additional users for the same company. So the “Call” service will be applied to the company group and not to the users, got it? Instead of create this custom field for each user, we want to create this field to the group because it’s easier to manage.
I already created this new column in database but don’t know how to update this data in the group edit screen without change the plugin’s core files.
-
This reply was modified 2 years, 2 months ago by
marcus182.
Yes, I see and since you have the column added in the database, you can use the groups filter hook to add fields in the admin page:
and the hook to process your new data on success:
Also the equivalent filter hook to edit these new fields
and the hook to process the modified data on success:
Plugin documentation reference can be found here:
Kind regards,
George
Very nice man, worked perfectly. Thank you!!