{"id":41747,"date":"2016-02-05T02:46:02","date_gmt":"2016-02-05T02:46:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/switch-user\/"},"modified":"2019-02-27T14:49:37","modified_gmt":"2019-02-27T14:49:37","slug":"switch-user","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/switch-user\/","author":10474405,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.2","stable_tag":"trunk","tested":"5.1.22","requires":"3.1.0","requires_php":"","requires_plugins":"","header_name":"Switch User","header_author":"M\u00e1rio Valney","header_description":"","assets_banners_color":"97dcfb","last_updated":"2019-02-27 14:49:37","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/mariovalney.com\/","header_plugin_uri":"http:\/\/projetos.mariovalney.com\/switch-user","header_author_uri":"http:\/\/mariovalney.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3014,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1478374","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1343662","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","2.0","2.1","2.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[94,2275,1917],"plugin_category":[59],"plugin_contributors":[85984,87575],"plugin_business_model":[],"class_list":["post-41747","plugin","type-plugin","status-closed","hentry","plugin_tags-debug","plugin_tags-developer","plugin_tags-users","plugin_category-utilities-and-tools","plugin_contributors-leobaiano","plugin_contributors-mariovalney","plugin_committers-mariovalney"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/switch-user_97dcfb.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>It's a plugin for developers.\nThe intent is create a simple interface where the logged user can switch to another user account.<\/p>\n\n<p>This make tests and debug infos more fast (especially when you are working with different roles).<\/p>\n\n<p>For security:<\/p>\n\n<ul>\n<li>Only logged users can switch user accounts in website with WP_DEBUG false.<\/li>\n<li>Passwords are not revealed (of course).<\/li>\n<li>Uses the cookie authentication function 'wp_set_auth_cookie' to switch accounts.<\/li>\n<li>Implements the nonce security system (of course).<\/li>\n<\/ul>\n\n<p>Obs: For now, the interface appears only in website, not in dashboard.<\/p>\n\n<!--section=installation-->\n<p>Through the panel:<\/p>\n\n<ol>\n<li>Go to the Plugins menu and click Add New.<\/li>\n<li>Search for Switch User.<\/li>\n<li>Click 'Install Now' next to the Switch User plugin.<\/li>\n<li>Activate the plugin.<\/li>\n<\/ol>\n\n<p>Uploading by yourself:<\/p>\n\n<ol>\n<li>Upload the entire switch-user folder to the \/wp-content\/plugins\/ directory or the .zip file in Plugins menu.<\/li>\n<li>Activate the plugin.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How switch users?<\/dt>\n<dd><p>The interface to switch users will appear fixed on right side of your website.<\/p><\/dd>\n<dt>I can't find the interface!<\/dt>\n<dd><p>Make sure your theme uses get_footer() function... or read next question.<\/p><\/dd>\n<dt>Can I use it in production (real) website?<\/dt>\n<dd><p>NO! For secury reasons, of course...\nBut it will works only if you set WP_DEBUG to true or you're already logged.<\/p>\n\n<p>Anywauy, you can change it with 'su_front_can_render'.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2<\/h4>\n\n<ul>\n<li>Added a lot of hooks for developers:<\/li>\n<li>\n<ul>\n<li>su_front_get_users_args<\/li>\n<\/ul><\/li>\n<li>\n<ul>\n<li>su_front_after_render_html<\/li>\n<\/ul><\/li>\n<li>\n<ul>\n<li>su_front_can_render<\/li>\n<\/ul><\/li>\n<li>\n<ul>\n<li>su_front_change_user_message_not_allowed<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Fix ajax request<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Code refactored (POO)<\/li>\n<li>Improved front-end<\/li>\n<li>I18n by @leobaiano<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>File architecture improved by @leobaiano<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version: you can switch through all users registered.<\/li>\n<\/ul>","raw_excerpt":"Switch to another user account quickly.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/41747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=41747"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mariovalney"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=41747"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=41747"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=41747"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=41747"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=41747"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=41747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}