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_URL
This is the full URL to the Membership Logout Page ( the WordPress® logout page ).
- Code:
<?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:
wp_logout_url()
Statistics: Posted by Jason Caldwell — June 22nd, 2010, 10:52 am
]]>