User sign in to access website

I am using the Plugin ‘WP User Manger’ to create user profiles, sign in form registration form etc. What i want to be able to do is that users sign in to access my website. i customized my functions.php file and added the following code

add_action(‘wp’, ‘wpse_41699_wp’, 0);

function wpse_41699_wp(){
$url = get_bloginfo(‘home’).’/login’;
header(‘HTTP/1.1 403 Forbidden’);
header(“Location: $url”);

this works well just that if the user clicks on register option they will again be redirected to this instead of the registration form. how can i achieve that the custom sign in form is used along with its links like, register,forgot password etc.

Read more here:: User sign in to access website

Leave a Reply

Your email address will not be published. Required fields are marked *