Info
- 7 posts
- 3 voices
- Started 2 years ago by Milan Dinić
- Latest reply from Milan Dinić
- This topic is resolved
How to use bb_send_pass_message filter?
-
- Posted 2 years ago #
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)
-
- Posted 2 years ago #
All filters work the same way.
just append the data with the argument (actual data passed) and return it.
BTW, what did you try? -
- Posted 2 years ago #
function bb_custom_pass_message ($message) {$message .= 'My message.';
return $message;
}add_filter( 'bb_send_pass_message', 'bb_custom_pass_message' );
-
- Posted 2 years ago #
function bb_custom_pass_message ($message) { $message .= 'My message.'; return $message; } add_filter( 'bb_send_pass', 'bb_custom_pass_message' ); -
- Posted 2 years ago #
@zaerl Thank you, but it doesn't work. I also don't see that filter bb_send_pass exists.
-
- Posted 2 years ago #
bb_send_pass. At least in 1.0.2 which is the official release.
-
- Posted 2 years ago #
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)
-
You must log in to post.