Skip to content

password_protected_logout_link Shortcode

Ben Huson edited this page Mar 26, 2015 · 4 revisions

Simple Usage

The following example outputs a logout link if a user is logged in.

[password_protected_logout_link /]

Customise The Logout Text

You can either wrap some text in the short code which will make the text into the logout link...

[password_protected_logout_link]Logout?[/password_protected_logout_link]

... or you can specify the logout text as an attribute.

[password_protected_logout_link text="Log me out" /]

Logout Redirect

Specify a different URL to redirect to after logout.

[password_protected_logout_link redirect_to="https://github.com/benhuson" /]