Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Php plugin error – login


jfcarter
Participant

@jfcarter

Okay, here’s the code. I cut and pasted it from the forum and added the php open and close :

<?php

function oci_login_redirect($redirect_to, $set_for, $user){

$redirect_to = bp_core_get_userurl($user->ID);

return $redirect_to;

}

add_filter(‘login_redirect’, ‘oci_login_redirect’, 10, 3);

?>

Skip to toolbar