{"id":136621,"date":"2021-02-22T07:35:04","date_gmt":"2021-02-22T07:35:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/direct-logout\/"},"modified":"2021-02-22T08:17:12","modified_gmt":"2021-02-22T08:17:12","slug":"direct-logout","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/direct-logout\/","author":14889143,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"5.6.17","requires":"4.7","requires_php":"7.0","requires_plugins":"","header_name":"Direct Logout","header_author":"Finalmarco","header_description":"Woocommerce Logout without confirimation","assets_banners_color":"ffffff","last_updated":"2021-02-22 08:17:12","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.finalmarco.com\/donations\/donation\/","header_plugin_uri":"https:\/\/www.finalmarco.com\/plugin-woocommerce-direct-logout\/","header_author_uri":"https:\/\/finalmarco.com","rating":5,"author_block_rating":0,"active_installs":100,"downloads":1933,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"finalmarco","date":"2021-02-22 07:34:50"},"1.1.0":{"tag":"1.1.0","author":"finalmarco","date":"2021-02-22 08:17:12"}},"upgrade_notice":{"":"<p>None<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2478722,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2478722,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2478722,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Control Panel"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4233,286],"plugin_category":[38,45],"plugin_contributors":[196515],"plugin_business_model":[],"class_list":["post-136621","plugin","type-plugin","status-publish","hentry","plugin_tags-logout","plugin_tags-woocommerce","plugin_category-authentication","plugin_category-ecommerce","plugin_contributors-finalmarco","plugin_committers-finalmarco"],"banners":{"banner":"https:\/\/ps.w.org\/direct-logout\/assets\/banner-772x250.jpg?rev=2478722","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/direct-logout\/assets\/icon-128x128.jpg?rev=2478722","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/direct-logout\/assets\/screenshot-1.jpg?rev=2478722","caption":"Control Panel"}],"raw_content":"<!--section=description-->\n<p>This plugin remove the \u201cAre you sure you want to log out?\u201d confirmation page once an user logout.<\/p>\n\n<p>After the logout the plugin lets you choose\u00a0from redirect:<\/p>\n\n<ul>\n<li>Same page<\/li>\n<li>Login page<\/li>\n<li>Homepage<\/li>\n<li>Custom page<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='i%20don%27t%20want%20to%20install%20a%20plugin%20for%20this%20simple%20function%2C%20do%20you%20have%20a%20hook%3F%C2%A0'><h3>I don't want to install a plugin for this simple function, do you have a hook?\u00a0<\/h3><\/dt>\n<dd><p>Of course, you can put the following code inside your function.php page, it will redirect ot the login page\n    query_vars['customer-logout'] ) ) {\n    \n            wp_redirect( str_replace( '&amp;', '&amp;', wp_logout_url( wc_get_page_permalink( 'myaccount' ) ) ) );\n            header(\"Refresh:0\");\n            exit;\n    \n        }\n    \n    }\n    add_action( 'template_redirect', 'finalmarco_logout' );\n    \n    \n     ?&gt;<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>None<\/p>","raw_excerpt":"This plugin let your users logout from woocommerce without Confirmation.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/136621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=136621"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/finalmarco"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=136621"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=136621"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=136621"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=136621"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=136621"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=136621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}