How to manipulate post and group status sync

By default the post and group status is synced.

Posts and Groups have different post status names and we need to set up a status sync logic. This logic can be manipulated via filters.

If the post status is set to draft, pending or trash the group status is set to hidden. If the post status is set to publish the group status will be set to public. Post status private will set the group status to private.

It could be the case that you want to change this logic. For example, if you want to set the group to private but the post should stay published.

You can manipulate this logic for Groups and Post separately.

Change Group Status Sync Logic: If you want to manipulate the group status sync if the post status get changed use this hook: bf_attached_group_status