WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to perform my own function in place of a WP function (4 posts)

  1. frank thirteen
    Member
    Posted 2 years ago #

    I am running BuddyPress and I do not want the standard BP email notice to go out to a user when I add them -- I want my own customized email to go out.

    So I commented out a line of code "wp_email()" in ../wp-includes/pluggable.php

    But I would rather just have my own function performed rather than BuddyPress' so I don't have to edit the source code every time I do an version upgrade.

    can I use add_action() or change_action() somehow to evoke my own function instead of function wp_new_user_notification($user_id, $plaintext_pass = '') {} ?

    Thanks.

  2. Tirumal
    Member
    Posted 2 years ago #

    You need a filter not an action. Have a look on this link for list of hooks available with buddy press.

  3. frank thirteen
    Member
    Posted 2 years ago #

    Excellent, thanks @Tirumal.

  4. Tirumal
    Member
    Posted 2 years ago #

    You're welcome!!

Topic Closed

This topic has been closed to new replies.

About this Topic