You can either add a Meta widget to your Sidebar in WordPress, or use a plugin like this one:
http://wordpress.org/extend/plugins/sidebar-login/s2Member does NOT introduce anything new to your theme by itself. You have to create your own Membership Options Page, Login Welcome Page, and if you want logout links, you can use the tools built into WordPress for that, or apply widgets to a Sidebar, like the one I listed above.
For developers, s2Member makes an API Constant available:
S2MEMBER_LOGOUT_PAGE_URLThis is the full URL to the Membership Logout Page ( the WordPress® logout page ).
- Code: Select all
<?php if (S2MEMBER_CURRENT_USER_IS_LOGGED_IN){ ?>
<a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">My Account</a>
| <a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>">Logout</a>
<?php } ?>
All of s2Member's API Constants are documented inside your WordPress Dashboard, under:
s2Member -> API /Scripting -> Constants
Developers can also just use this built-in WordPress function:
- Code: Select all
wp_logout_url()