Title: Syntax new logout shortcode
Last modified: August 21, 2016

---

# Syntax new logout shortcode

 *  Resolved [bijlf](https://wordpress.org/support/users/bijlf/)
 * (@bijlf)
 * [12 years ago](https://wordpress.org/support/topic/syntax-new-logout-shortcode/)
 * Hi Chad,
 * Can you specify the syntax for the new 2.9.2 logout shortcode?
    I can’t find 
   it in the documentation.
 * [https://wordpress.org/plugins/wp-members/](https://wordpress.org/plugins/wp-members/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [12 years ago](https://wordpress.org/support/topic/syntax-new-logout-shortcode/#post-4911469)
 * Sorry – I’ve been behind in getting updated documentation out the door…
 * The new shortcode can be used as follows:
 * [wpmem_logout]
    (displays the default “Click here to log out” text)
 * OR…
 * [wpmem_logout]This text will be the logout link[/wpmem_logout]
 * Also, I am updating all of the previous shortcodes to use wpmem_ (although the
   previous versions will remain compatible). So far, here’s what’s updated:
 * **[wpmem_logout]** discussed above
 * **[wpmem_field]** replaces [wp-members field=”some_meta_field”].
 * It still requires the field parameter
 * [wpmem_field field=some_meta_field]
 * But also can accept a user ID if you want to display something that is not the
   current user:
 * [wpmem_field field=some_meta_field id=123]
 * There is also a “get” option for the ID so you can make it dynamic to retrieve
   the user ID from a uid parameter in a querystring.
 * [wpmem_field field=some_meta id=get] would retrieve some_meta for whatever user
   ID is passed through
    [http://yoursite.com/some-page/?uid=123](http://yoursite.com/some-page/?uid=123).
 * **[wpmem_logged_in]** replaces [wp-members status=”in”].
 * This shortcode defaults to logged in status with no argument passed:
 * [wpmem_logged_in]This can only be seen by logged in users[/wpmem_logged_in].
 * Or you can pass the status parameter for logged out status:
 * [wpmem_logged_in status=”out”]some content[/wpmem_logged_in]
 * These haven’t been fully documented yet because I may make some minor changes
   yet.
 * In the next couple versions I expect to update all of the page shortcodes to 
   follow this format. That will make it easier, I hope. So for example:
 * [wp-members page=”register”] will become [wpmem_register], etc.
 *  Thread Starter [bijlf](https://wordpress.org/support/users/bijlf/)
 * (@bijlf)
 * [12 years ago](https://wordpress.org/support/topic/syntax-new-logout-shortcode/#post-4911476)
 * Many thanks for the update.
 * It is a very nice plugin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Syntax new logout shortcode’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bijlf](https://wordpress.org/support/users/bijlf/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/syntax-new-logout-shortcode/#post-4911476)
 * Status: resolved