Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to use bb_send_pass_message filter?

  • @dimadin

    Participant

    I am having problem with using filter bb_send_pass_message. What I want to do is to add some text to end of message but with any code I tried it was without success. Anyone used it or knows how to use it?

    Thanks in advance.

    (this filter is defined in /bb-includes/functions.bb-users.php)

Viewing 6 replies - 1 through 6 (of 6 total)
  • @ashfame

    Participant

    All filters work the same way.

    just append the data with the argument (actual data passed) and return it.

    BTW, what did you try?

    @dimadin

    Participant

    function bb_custom_pass_message ($message) {

    $message .= ‘My message.’;

    return $message;

    }

    add_filter( ‘bb_send_pass_message’, ‘bb_custom_pass_message’ );

    @zaerl

    Participant
    function bb_custom_pass_message ($message)
    {
    $message .= 'My message.';
    return $message;
    }

    add_filter( 'bb_send_pass', 'bb_custom_pass_message' );

    @dimadin

    Participant

    @zaerl Thank you, but it doesn’t work. I also don’t see that filter bb_send_pass exists.

    @zaerl

    Participant

    bb_send_pass. At least in 1.0.2 which is the official release.

    @dimadin

    Participant

    zaerl, you helped me find a problem. I used filters above on 1.0.2 version where they don’t exist so it couldn’t work. It’s because on computer I have a trunk version where this is implemented.

    So on trunk version my code works as intended. Thank you both zaerl and ashfame.

    (btw, bb_send_pass filter doesn’t exists in 1.0.2 too, there is just a function with that name)

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