All filters work the same way.
just append the data with the argument (actual data passed) and return it.
BTW, what did you try?
function bb_custom_pass_message ($message) {
$message .= ‘My message.’;
return $message;
}
add_filter( ‘bb_send_pass_message’, ‘bb_custom_pass_message’ );
function bb_custom_pass_message ($message)
{
$message .= 'My message.';
return $message;
}
add_filter( 'bb_send_pass', 'bb_custom_pass_message' );
@zaerl Thank you, but it doesn’t work. I also don’t see that filter bb_send_pass exists.
bb_send_pass. At least in 1.0.2 which is the official release.
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)