Skip to:
Content
Pages
Categories
Search
Top
Bottom

Overriding a public function inside a class


  • meijioro
    Participant

    @meijioro

    Is it possible to override the public function run_send_action( BP_Invitation $invitation ) that is inside class BP_Groups_Invitation_Manager extends BP_Invitation_Manager? I’d like to override who receives the email notification from my own custom plugin.

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

  • shanebp
    Moderator

    @shanebp

    No, you cannot override it.
    If you want to filter an email sent by BP, use the do_action_ref_array hook
    in function bp_send_email
    found in: buddypress\bp-core\bp-core-functions.php


    meijioro
    Participant

    @meijioro

    What I’m trying to do is redirect the email notifications when a user requests a membership to a group from all admins of the subteam to a particular email address.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar