{"id":511,"date":"2021-02-22T16:56:52","date_gmt":"2021-02-22T16:56:52","guid":{"rendered":"https:\/\/localwp.com\/?post_type=help&#038;p=511"},"modified":"2023-07-27T15:51:54","modified_gmt":"2023-07-27T15:51:54","slug":"using-one-click-admin","status":"publish","type":"help","link":"https:\/\/localwp.com\/help-docs\/local-features\/using-one-click-admin\/","title":{"rendered":"One-click admin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">&#8220;One-click admin&#8221; allows you to log in to your site&#8217;s &#8220;WP-Admin&#8221; with just one click! Simply toggle the option to get started. <\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group help-doc-toc\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">Table of Contents:<\/p>\n\n\n<nav aria-label=\"Table of Contents\" class=\"wp-block-table-of-contents\"><ol><li><a class=\"wp-block-table-of-contents__entry\" href=\"#set-up-one-click-admin\">Set up One-click admin<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"#disabling-one-click-admin\">Disable One-click admin<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"#will-work-over-live-links\">Live Links and One-click admin<\/a><\/li><li><a class=\"wp-block-table-of-contents__entry\" href=\"#will-work-on-remote-environment\">One-click admin functionality<\/a><\/li><\/ol><\/nav><\/div><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8220;WP-Admin&#8221; button in Local is one of the most clicked buttons because of how often we&#8217;re managing our WordPress sites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you aren&#8217;t logged into the WordPress site, then clicking the &#8220;WP-Admin&#8221; button will prompt you for your username and password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But you&#8217;re a busy dev, and likely are pulling down various client sites with different admin passwords. Those domains probably don&#8217;t align with your password manager. And you just want to get on with development.<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"set-up-one-click-admin\" style=\"color:#000000\"><strong>Set up One-click admin<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using &#8220;One-click admin&#8221;allows you to streamline the process of logging into any site managed by Local.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After toggling on the &#8220;One-click admin&#8221; feature, select the admin user you want to log in as, and click the &#8220;WP-Admin&#8221; button to navigate directly to the WordPress admin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No more opening your password manager, resetting passwords using WP-CLI, or resetting passwords using the Lost Password workflow!<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-style-drop-shadow\"><img decoding=\"async\" width=\"2404\" height=\"1562\" src=\"https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off.jpg\" alt=\"Local's One-click admin feature is currently turned off on the site Brunner's Bakery. \" class=\"wp-image-2045\" srcset=\"https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off.jpg 2404w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off-300x195.jpg 300w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off-1024x665.jpg 1024w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off-768x499.jpg 768w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off-1536x998.jpg 1536w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-off-2048x1331.jpg 2048w\" sizes=\"(max-width: 2404px) 100vw, 2404px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-style-drop-shadow\"><img decoding=\"async\" width=\"1024\" height=\"664\" src=\"https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-on-2-1024x664.jpg\" alt=\"Local's one-click admin feature is turned on with an admin selected on the site Brunner's Bakery. This means when you will automatically be logged into this admin when you click the WP-Admin button. \" class=\"wp-image-2049\" srcset=\"https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-on-2-1024x664.jpg 1024w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-on-2-300x195.jpg 300w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-on-2-768x498.jpg 768w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-on-2-1536x996.jpg 1536w, https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-brunners-bakery-one-click-admin-on-2-2048x1328.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-drop-shadow\"><img decoding=\"async\" src=\"https:\/\/localwp.com\/wp-content\/uploads\/2023\/06\/lhd-one-click-admin-1.gif\" alt=\"\" class=\"wp-image-2070\" style=\"width:845px;height:475px\" width=\"845\" height=\"475\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div id=\"help-step-block_c8fa70b7d2d84bee6c5536f9b11ca07f\" class=\"help-note-container help-type-note\">\n\t<div class=\"help-icon\">\n\t\t<svg viewBox=\"0 0 512 512\" fill=\"currentColor\"><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-464a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm70.7 121.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L243.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z\"><\/path><\/svg>\t<\/div>\n    <div class=\"help-text\">\n\t\t<p><!-- wp:heading --><\/p>\n<h2>Switching Users<\/h2>\n<p>While testing functionality, you can quickly switch between multiple admin accounts by selecting a different user from the dropdown menu.<\/p>\n<p>Any admin added through the users tab in the &#8220;WP-Admin&#8221; will automatically appear in the dropdown menu.<\/p>\n<p><!-- \/wp:paragraph --><\/p>\n\t<\/div>\n<\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"disabling-one-click-admin\" style=\"color:#000000\"><strong>Disable One-click admin<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can disable &#8220;One-click admin&#8221; by clicking the on\/off toggle. With &#8220;One-click admin&#8221; disabled, Local will no longer automatically log you in when clicking the &#8220;WP-Admin&#8221; button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Local won&#8217;t do anything to log out of existing sessions, which means if you need to logout, you can do so from within the WordPress admin.<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"will-work-over-live-links\" style=\"color:#000000\"><strong>Live Links and One-click admin<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Due to security concerns, &#8220;One-click admin&#8221; only works when working on the site directly on your local machine. This means that &#8220;One-click admin&#8221; will not work with Live Links. <\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-color\" id=\"will-work-on-remote-environment\" style=\"color:#000000\"><strong>One-click admin functionality<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;One-click admin&#8221; only works for sites that Local is directly managing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Local performs this magic by leveraging a PHP configuration option called <code>auto_prepend_file<\/code>, which only runs within the Local site&#8217;s environment. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This &#8220;One-click admin&#8221; won&#8217;t work on remote environments, but you can always pull a site down and use &#8220;One-click admin&#8221; to log into the local site.<\/p>\n\n\n<div id=\"help-step-block_83b38765ba04867df15d3e945bff23f9\" class=\"help-note-container help-type-note\">\n\t<div class=\"help-icon\">\n\t\t<svg viewBox=\"0 0 512 512\" fill=\"currentColor\"><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-464a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm70.7 121.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L243.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z\"><\/path><\/svg>\t<\/div>\n    <div class=\"help-text\">\n\t\t<p>If you are still being prompted to log in to the &#8220;WP-Admin&#8221; after toggling on &#8220;One-click admin&#8221; and you are using Site Domains for your Router Mode then we suggest switching from that to localhost. Another option is to do a search and replace for https &gt; http.<\/p>\n\t<\/div>\n<\/div>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-fe48e5de wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/community.localwp.com\/c\/support\/5\" target=\"_blank\" rel=\"noreferrer noopener\">Get Community Support<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;One-click admin&#8221; allows you to log in to your site&#8217;s &#8220;WP-Admin&#8221; with just one click! Simply toggle the option to get started. Table of Contents: The &#8220;WP-Admin&#8221; button in Local is one of the most clicked buttons because of how often we&#8217;re managing our WordPress sites. If you aren&#8217;t logged into the WordPress site, then&#8230;<\/p>\n","protected":false},"author":49,"parent":800,"menu_order":5,"template":"","tags":[38,41],"helpcategories":[2],"class_list":["post-511","help","type-help","status-publish","hentry","tag-core-features","tag-features","helpcategories-general"],"acf":{"help_keywords":""},"_links":{"self":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc"}],"about":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/types\/help"}],"author":[{"embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/users\/49"}],"version-history":[{"count":0,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/511\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/help-doc\/800"}],"wp:attachment":[{"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/tags?post=511"},{"taxonomy":"helpcategories","embeddable":true,"href":"https:\/\/localwp.com\/wp-json\/wp\/v2\/helpcategories?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}