Skip to:
Content
Pages
Categories
Search
Top
Bottom

groups_before_group_deleted not called when deleted in dashboard


  • solhuebner
    Participant

    @solhuebner

    Maybe I am doing something wrong:

    groups_before_group_deleted hook is working when the group is deleted from the frontend but when I delete it from the dashboard it is not? But I need to get some group meta before it gets deleted to clean up 🙂

    Can someone help out here?

    Kind regards

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

  • shanebp
    Moderator

    @shanebp

    Try using this hook fromfunction groups_delete_group in buddypress\bp-groups\bp-groups-functions.php

    do_action( 'groups_before_delete_group', $group_id );


    solhuebner
    Participant

    @solhuebner

    Hi @shanebp thank you 🙂

    Your suggestion is working but I am still surprised about the behavior of groups_before_group_deleted 😉

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘groups_before_group_deleted not called when deleted in dashboard’ is closed to new replies.
Skip to toolbar