{"id":30897,"date":"2014-08-03T01:39:02","date_gmt":"2014-08-03T01:39:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/log-out-shortcode\/"},"modified":"2024-07-17T08:16:37","modified_gmt":"2024-07-17T08:16:37","slug":"log-out-shortcode","status":"publish","type":"plugin","link":"https:\/\/eo.wordpress.org\/plugins\/log-out-shortcode\/","author":13398931,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.1","stable_tag":"1.1.2","tested":"6.6.5","requires":"6.0","requires_php":"","requires_plugins":null,"header_name":"Log Out Shortcode","header_author":"OM4 Software","header_description":"","assets_banners_color":"","last_updated":"2024-07-17 08:16:37","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/om4.io\/plugins\/log-out-shortcode\/","header_author_uri":"https:\/\/om4.io\/","rating":5,"author_block_rating":0,"active_installs":3000,"downloads":51359,"num_ratings":12,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"jamescollins","date":"2014-08-03 01:39:48"},"1.0.1":{"tag":"1.0.1","author":"jamescollins","date":"2014-08-07 07:24:21"},"1.0.3":{"tag":"1.0.3","author":"jamescollins","date":"2015-04-22 08:29:08"},"1.0.4":{"tag":"1.0.4","author":"jamescollins","date":"2016-08-09 06:00:01"},"1.0.5":{"tag":"1.0.5","author":"jamescollins","date":"2017-06-21 06:30:11"},"1.0.6":{"tag":"1.0.6","author":"jamescollins","date":"2019-05-16 07:36:33"},"1.0.7":{"tag":"1.0.7","author":"om4","date":"2020-09-04 05:14:01"},"1.0.8":{"tag":"1.0.8","author":"om4","date":"2020-09-04 05:23:37"},"1.1.0":{"tag":"1.1.0","author":"om4","date":"2024-03-18 03:39:10"},"1.1.1":{"tag":"1.1.1","author":"om4","date":"2024-03-18 03:41:53"},"1.1.2":{"tag":"1.1.2","author":"om4","date":"2024-07-17 08:16:37"},"1.1.3":{"tag":"1.1.3","author":"om4","date":"2024-07-17 08:23:10"},"v1.0.2":{"tag":"v1.0.2","author":"jamescollins","date":"2014-09-02 07:20:42"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":12},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.1.3","v1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[537,5917,4233,80],"plugin_category":[38,43],"plugin_contributors":[78240],"plugin_business_model":[],"class_list":["post-30897","plugin","type-plugin","status-publish","hentry","plugin_tags-link","plugin_tags-log-out","plugin_tags-logout","plugin_tags-shortcode","plugin_category-authentication","plugin_category-customization","plugin_contributors-jamescollins","plugin_committers-jamescollins","plugin_committers-om4"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/log-out-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>There are 3 shortcodes that can be used:<\/p>\n\n<pre><code>[logout] - A standard Log Out link, where the user stays on the login screen after being logged out.\n[logout_to_home] - A link that logs the user out, and redirects them to your home page.\n[logout_to_current] - A link that logs the user out, and redirects them back to the current page\/URL.\n<\/code><\/pre>\n\n<p><strong>Advanced Usage:<\/strong><\/p>\n\n<p>All 3 shortcodes all support 3 attributes\/parameters:<\/p>\n\n<pre><code>[logout text=\"\" class=\"\" redirect=\"\"]\n<\/code><\/pre>\n\n<p>The 3 supported attributes\/parameters are:<\/p>\n\n<pre><code>text=\"\"\n<\/code><\/pre>\n\n<p>- The text to use for the link anchor text.\n- Default: <code>Log Out<\/code>\n    class=\"\"\n- The HTML class(es) to use for the link. Multiple classes should be separated by a space.\n- Default: <code>logout<\/code>\n    redirect=\"\"\n- The path\/URL to redirect the user to after they are logged out.\n- Default: the WordPress login screen.\n- Note: must be a URL or path on the same domain name as the WordPress website (cannot be an external domain\/URL)<\/p>\n\n<p><strong>Some Examples:<\/strong>\n    [logout text=\"Log Off\"] - A <code>Log Off<\/code> link that logs the user out.\n    [logout redirect=\"\/members\/\"] - Log the user out, and redirect them to <code>\/members\/<\/code>.\n    [logout_to_home text=\"Log Off\"] - A <code>Log Off<\/code> link that logs the user out and redirects them to your home page.\n    [logout class=\"log-out-link\"] - Use a custom CSS\/HTML class name for the log out link.<\/p>\n\n<p>Note: the shortcodes will return nothing\/empty if the user isn't logged in.<\/p>\n\n<p>This plugin is inspired by the <a href=\"https:\/\/wordpress.org\/plugins\/logout-button\/\">Logout Button plugin by Ben Poland<\/a>.<\/p>\n\n<p>If you like, you can <a href=\"https:\/\/github.com\/OM4\/log-out-shortcode\">contribute to this plugin on GitHub<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Activate the plugin.<\/li>\n<li>Add one of the shortcodes to a post\/page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20shortcodes%20can%20be%20used%3F'><h3>What shortcodes can be used?<\/h3><\/dt>\n<dd><p>Please see the <a href=\"https:\/\/wordpress.org\/plugins\/log-out-shortcode\/\">plugin description<\/a> for a list of shortcodes and supported parameters.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Mark compatibility with WordPress version 6.6.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Mark compatibility with WordPress version 6.5.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Minimum required WordPress version updated to 6.0.<\/li>\n<li>Mark compatibility with WordPress version 6.4.<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Fix Typo<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Mark WP 5.5 compatible<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Mark WP 5.2 compatible<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fix a bug that meant it was not possible to use specify multiple classes in the class=\"\" attribute. Thanks to @hughc for the bug report.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>WordPress 4.4 compatibility.<\/li>\n<li>Documentation updates.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Clarify usage of the redirect=\"\" parameter.<\/li>\n<li>WordPress 4.1 compatibility.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>WordPress 4.0 compatibility.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>WordPress 3.9.2 compatibility.<\/li>\n<li>Add [logout] shortcode to plugin description.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Easily add a log out link or button to a post or page using a simple shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=30897"}],"author":[{"embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/om4"}],"wp:attachment":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30897"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30897"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30897"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30897"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30897"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}