Skip to:
Content
Pages
Categories
Search
Top
Bottom

Approve user to group hook with wp_email function ?

  • @eberswine

    Participant

    Hi,

    I have been searching and searching for a hook / function in buddypress that :

    when user is approved to a group, then it will automatically email that user “something”?

    Thanks so much!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @shanebp

    Moderator

    Default behavior is to send the member an email when their request is approved or denied.

    Are those emails not being sent ?

    @eberswine

    Participant

    hmm. i didn’t think they were sending ?? Where is that hook or function located ?

    Thanks for your reply @shanebpdev

    @shanebp

    Moderator

    If they aren’t sending, you have a less specific problem.

    In BP 1.7beta2, this sends the email:

    `groups_notification_membership_request_completed()
    in
    bp-groups/bp-groups-notifications.php`

    If you are getting internal notifications but no email, make sure your install can send any email.

    @eberswine

    Participant

    Thanks so much!!

    If I wanted to customize this per group ID, how would I achieve this ?

    ** so per group approval — I would send a different message to each ?

    @shanebp

    Moderator

    Create an add_filter on one or both of the apply_filters_ref_array(…) near the bottom of that function.

    Put it in your theme/functions.php or your plugin or plugins/bp-custom.php

    If you don’t know how to use add_filter, it’s a basic WP call so google it.

    @eberswine

    Participant

    @shanebp Thanks for those hints!!

    Wondering if I could pay you for this small “add_filter” ?

    If so, let me know – I can pay PayPal instantly!

    I would just need :

    if ($group_id == 1) { email this to user accepted }

    Thanks!!

    @shanebp

    Moderator

    @eberswine

    You can contact me thru the info in my profile under profile link.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Approve user to group hook with wp_email function ?’ is closed to new replies.
Skip to toolbar