Tag User Logout Link
This template tag displays link to logout
Example
user_logout_link( $before = '', $after = '', $link_text = '', $link_title = '#' );
Parameters
- Name: before
- Default: (no space)
- Usage: Displayed before logout link.
- Name: after
- Default: (no space)
- Usage: Displayed after logout link.
- Name: link_text
- Default: (no space)
- Usage: If ‘link_text’ is empty then default link text will be displayed.
- Name: link_title
- Default: ‘#’
- Usage: If ‘link_title’ is ‘#’ then it displays default title instead it displays ‘link_title’ value.
Return value
This function return false, if a user is not logged in.
If user is logged in then this function displays content.