Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Anphira,

    Even though I’m not aware of the details why and how you are going to use these ACF fields, I would advice you against that approach. The group edit page is using its own form, its own validation for that form and stores the submitted data to the appropriate tables of Groups plugin. For that reason I think it would be better if you create a new admin page and provide a new dedicated form for the group where you can add/define additional ACF fields and on submit choose where you are going to store that data.

    Kind regards,
    George

    Plugin Author Kento

    (@proaktion)

    There are filters and actions in Groups that are provided for the purpose of extending the add and edit group screens:

    Add Group …

    Filter: groups_admin_groups_add_form_after_fields – this filter allows to add HTML within the form presented to add a group. The filter receives an empty string and is expected to return desired additional HTML.

    Action: groups_admin_groups_add_submit_success – this action is invoked if a group has successfully been created upon form submission and can be used to process additional form data as needed. The action receives a single argument, the ID of the group.

    Edit Group …

    Filter: groups_admin_groups_edit_form_after_fields – allows to add HTML within the form used to edit a group. The filter receives an empty string and is expected to return desired additional HTML.

    Action: groups_admin_groups_edit_submit_success – invoked after group has been updated, use it to update things based on your additional form data. The action receives a single argument, the ID of the group.

    These actions and filters should be documented on https://docs.itthinx.com/document/groups/api/actions/ and https://docs.itthinx.com/document/groups/api/filters/ but they are currently missing from those pages so that needs to be added. Note taken.

    I hope that helps and I’ll mark this as solved but please let me know if there are questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Use with ACF?’ is closed to new replies.