Home › Forums › Front End PM PRO › Settings page › Reply To: Settings page
October 21, 2020 at 10:37 am
#41464
shamim
Keymaster
First remove group settings from user settings page using following code
add_filter( 'fep_form_fields', function( $fields ){
unset( $fields['fep_groups'] );
return $fields;
}, 99);
Then show a form where you want your users can set their groups. You can get all groups using Fep_Group_Message::init()->get_all_groups()
and user selected groups using Fep_Group_Message::init()->get_user_groups()
. When they submit their form determine if they added or removed any group and save value accordingly.
You can get all in action in class-fep-group-message.php
file. See this file.