BACK TO DIRECTORY

Sewn In Template Log In

by Jupitercow

5.0
(1 ratings)

Creates a log in page at /login/ and manages password recovery and user notification feedback for the log in process. Everything gets managed within your page.php template or page-login.php template in order to fit into the theme better.

By default, this plugin creates a virtual page, but if you add a page with slug ‘login’, the plugin will begin to use that.

Add a redirect for logged in users

Controls where logged in users go when they login or when they visit the ‘/login/’ page. You can either return the post_id of the post/page to send them to, or the slug of the post/page to send them to.

// Redirect using post id
add_filter( 'sewn/login/logged_in_redirect', 'custom_sewn_logged_in_redirect_id' );
function custom_sewn_logged_in_redirect_id()
{
    return 4;
}



// Redirect using post slug
add_filter( 'sewn/login/logged_in_redirect', 'custom_sewn_logged_in_redirect_slug' );
function custom_sewn_logged_in_redirect_slug()
{
    return 'post-slug';
}

Sewn In Notification Box Support

If you install the Sewn In Notification Box, this plugin will start using that. This is handy to keep all of your notifications in a centralized location.

Screenshots

A log in form example

A log in form example

Password recovery form

Password recovery form

Plugin Details

Active Installs
30
Total Downloads
5,225
Version
1.1.4
Requires WP
3.6.1
Requires PHP
Tested Up To
4.4.34
Added
2015-06-18
Last Updated
2015-12-22 4:00am GMT

Ratings

5
1
4
0
3
0
2
0
1
0