Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Persistent Caching and Private Messaging


r-a-y
Keymaster

@r-a-y

No need to hack BP.

Put the following in your theme’s functions.php:

`
function ray_bp_get_send_public_message_link() {
global $bp;

return wp_nonce_url( $bp->loggedin_user->domain . $bp->activity->slug . ‘/?r=’ . $bp->displayed_user->userdata->user_login );
}
add_filter( ‘bp_get_send_public_message_link’, ‘ray_bp_get_send_public_message_link’ );

function ray_bp_get_send_private_message_link() {
global $bp;

return wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . ‘/compose/?r=’ . $bp->displayed_user->userdata->user_login );
}
add_filter( ‘bp_get_send_private_message_link’, ‘ray_bp_get_send_private_message_link’ );`

Skip to toolbar