{"id":14794,"date":"2025-07-12T07:44:20","date_gmt":"2025-07-11T22:44:20","guid":{"rendered":"https:\/\/hanami-web.tokyo.jp\/blog\/?p=14794"},"modified":"2025-09-25T16:16:01","modified_gmt":"2025-09-25T07:16:01","slug":"wordpress-user-add-ftp","status":"publish","type":"post","link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/","title":{"rendered":"How to forcefully add administrator login user information via FTP in WordPress"},"content":{"rendered":"<p>After updating WordPress, I suddenly encountered a problem where I could no longer log in using the password I had registered.<br>In addition, the administrator&#039;s email address was also forgotten, and an incident occurred in which the password could not be reset.<\/p>\n\n\n\n<p>I was able to successfully log in by forcibly adding user information via the server&#039;s file manager, so I&#039;ll record how I did it here.<\/p>\n\n\n\n<p>Also, I was a little scared by how easily user information could be added.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">table of contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#ftp%e7%b5%8c%e7%94%b1%e3%81%a7wordpress%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e6%83%85%e5%a0%b1%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b%e5%85%a8%e4%bd%93%e3%81%ae%e6%b5%81%e3%82%8c\" >Overall process for adding WordPress user information via FTP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%a3%e3%83%bc%e3%81%ab%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9\" >Access the file manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#%e3%83%86%e3%83%bc%e3%83%9e%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e7%a7%bb%e5%8b%95\" >Go to your theme file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e6%83%85%e5%a0%b1%e8%bf%bd%e5%8a%a0%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92headerphp%e3%81%ab%e6%8c%bf%e5%85%a5\" >Insert user information addition code into header.php<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\" >Try logging in<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%82%92%e5%a4%89%e6%9b%b4\" >Change Password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#headerphp%e3%82%92%e5%85%83%e3%81%ab%e6%88%bb%e3%81%99\" >Revert header.php<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-running\/wordpress\/wordpress-user-add-ftp\/#%e3%81%be%e3%81%a8%e3%82%81\" >summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"ftp%e7%b5%8c%e7%94%b1%e3%81%a7wordpress%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e6%83%85%e5%a0%b1%e3%82%92%e8%bf%bd%e5%8a%a0%e3%81%99%e3%82%8b%e5%85%a8%e4%bd%93%e3%81%ae%e6%b5%81%e3%82%8c\"><\/span>Overall process for adding WordPress user information via FTP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access the file manager<\/li>\n\n\n\n<li>Find header.php in your theme files<\/li>\n\n\n\n<li>Add user information code<\/li>\n\n\n\n<li>Once you&#039;re logged in, reset your password<\/li>\n\n\n\n<li>Revert the header.php entry<\/li>\n<\/ol>\n\n\n\n<p>The process is as follows.<br>Force generate WordPress user login info via your file manager!<br>Now, let&#039;s take a closer look at each step using xserver as an example.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%a3%e3%83%bc%e3%81%ab%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9\"><\/span>Access the file manager<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This is the first step in how to forcefully add a wordpress user via a file.<br>When you log in to the server, you will see an item called &quot;File Manager&quot;. Click on it to access file information.<br>If you can use FTP, you can do it via FTP!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"344\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1024x344.png\" alt=\"\" class=\"wp-image-14795\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1024x344.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-300x101.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-768x258.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1536x516.png 1536w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-18x6.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image.png 1613w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%86%e3%83%bc%e3%83%9e%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e7%a7%bb%e5%8b%95\"><\/span>Go to your theme file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Navigate to the hierarchy where WordPress for the target domain is located.<br>Enter the [wp-content] folder in that folder.<br><br>You can forcefully add WordPress user information by adding it to the theme file header.php.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"517\" height=\"586\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1.png\" alt=\"\" class=\"wp-image-14796\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1.png 517w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1-265x300.png 265w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-1-11x12.png 11w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-heading\">The installed theme files are in the folder called [themes], so go into this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"542\" height=\"505\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-2.png\" alt=\"\" class=\"wp-image-14797\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-2.png 542w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-2-300x280.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-2-13x12.png 13w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-heading\">&nbsp;Go to the folder of the theme you have activated<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"519\" height=\"305\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-3.png\" alt=\"\" class=\"wp-image-14798\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-3.png 519w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-3-300x176.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-3-18x12.png 18w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/figure>\n\n\n\n<p>This contains the file \u3010header.php\u3011.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"527\" height=\"565\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-4.png\" alt=\"\" class=\"wp-image-14799\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-4.png 527w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-4-280x300.png 280w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-4-11x12.png 11w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-heading\">Select the header.php file and click [Download].<br>Download it to your computer and save a backup file before making any edits.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"510\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-5-1024x510.png\" alt=\"\" class=\"wp-image-14800\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-5-1024x510.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-5-300x150.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-5-768x383.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-5-18x9.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-5.png 1342w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e6%83%85%e5%a0%b1%e8%bf%bd%e5%8a%a0%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92headerphp%e3%81%ab%e6%8c%bf%e5%85%a5\"><\/span>Insert user information addition code into header.php<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-heading\">&nbsp;Now, we will finally get to the task of adding WordPress user information.<br><br>Once the download is complete, click on Edit to open the editing screen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-6-1024x509.png\" alt=\"\" class=\"wp-image-14801\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-6-1024x509.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-6-300x149.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-6-768x382.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-6-18x9.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-6.png 1342w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>At the very top<br>&lt;?php<br>?&gt;<br>There is an item called &quot;Adding this information&quot; so I will add it here.<br>If not, add it yourself.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"701\" height=\"557\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-7.png\" alt=\"\" class=\"wp-image-14802\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-7.png 701w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-7-300x238.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-7-15x12.png 15w\" sizes=\"(max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<p>The code to add is the following:<\/p>\n\n\n\n<p>$user_login: Set any login ID<br>$user_pass: Set any login password<br>$user_email: Set any email address (it can be fictitious)<br>$role: Set user privileges. Be sure to set &#039;administrator&#039;.<\/p>\n\n\n\n<p>The code below is like a magic spell, so please use it as is.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if ( isset($_GET[&#039;bootstrap_admin&#039;]) &amp;&amp; $_GET[&#039;bootstrap_admin&#039;] === &#039;YOUR_SECRET&#039; ) { if ( ! is_user_logged_in() ) { \/\/ User information to create (be sure to change this later) $user_login = &#039;admin&#039;; \/\/ Login ID $user_pass = &#039;pass&#039;; \/\/ Password (make it strong) $user_email = &#039;test@test.com&#039;; \/\/ Email $role = &#039;administrator&#039;; \/\/ Permissions if ( ! username_exists( $user_login ) &amp;&amp; ! email_exists( $user_email ) ) { $uid = wp_insert_user( array( &#039;user_login&#039; =&gt; $user_login, &#039;user_pass&#039; =&gt; $user_pass, &#039;user_email&#039; =&gt; $user_email, &#039;role&#039; =&gt; $role, ) ); if (! is_wp_error( $uid ) ) { wp_set_current_user( $uid ); wp_set_auth_cookie( $uid ); } } } }<\/code><\/pre>\n\n\n\n<p>If you don&#039;t have this code, add it to the top of your page:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$user_login, &#039;user_pass&#039; =&gt; $user_pass, &#039;user_email&#039; =&gt; $user_email, &#039;role&#039; =&gt; $role, ) ); if (! is_wp_error( $uid ) ) { wp_set_current_user( $uid ); wp_set_auth_cookie( $uid ); } } } } ?&gt;<\/code><\/pre>\n\n\n\n<p>Here&#039;s the actual screenshot!<br>(I&#039;ve made some changes to the code, so the screenshot and the actual code may differ, but the image of where to add it is the same.)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"706\" height=\"722\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-8.png\" alt=\"\" class=\"wp-image-14803\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-8.png 706w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-8-293x300.png 293w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-8-12x12.png 12w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b\"><\/span>Try logging in<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When you log in<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:\/\/yourdomain\/?bootstrap_admin=YOUR_SECRET<\/code><\/pre>\n\n\n\n<p>Please access this URL and run it.<\/p>\n\n\n\n<p>Once you have added the user information addition code to header.php in your WordPress theme file, log in with the user information you created.<br>Once you have logged in, go to the User Information page and reset your password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"427\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-9-1024x427.png\" alt=\"\" class=\"wp-image-14804\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-9-1024x427.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-9-300x125.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-9-768x320.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-9-18x8.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-9.png 1274w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%82%92%e5%a4%89%e6%9b%b4\"><\/span>Change Password<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Instead of opening the editing screen of the newly created WordPress user, open the editing screen of the original WordPress user and reset the password.<br>After resetting your password, log out and check if you can log in as the original wordpress user.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1018\" height=\"738\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-10.png\" alt=\"\" class=\"wp-image-14805\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-10.png 1018w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-10-300x217.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-10-768x557.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-10-18x12.png 18w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<p>Once you have logged in, immediately delete the WordPress user information you added.<br>You cannot delete your own information as the logged-in WordPress user, so be sure to log in as the original WordPress user and then [Delete] the newly created WordPress user.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"847\" height=\"185\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-11.png\" alt=\"\" class=\"wp-image-14806\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-11.png 847w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-11-300x66.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-11-768x168.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/image-11-18x4.png 18w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"headerphp%e3%82%92%e5%85%83%e3%81%ab%e6%88%bb%e3%81%99\"><\/span>Revert header.php<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Finally, revert back to header.php in your WordPress theme files.<br>\u2460 Delete the added part<br>\u2461Upload and overwrite the header.php saved on your PC.<br>Either way is fine!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%81%be%e3%81%a8%e3%82%81\"><\/span>summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Since it is so easy to add user information, if someone has access to the file manager, they can easily log in to WordPress. That&#039;s very scary.<br><br>This time, since it was a WordPress site for which I was creating a child theme, I downloaded header.php from the parent theme and uploaded it to the child theme hierarchy.<br>I added the wordrpess user information addition code to the header.php file in the child theme, and once I was able to log in successfully, I deleted the header.php file that I had added to the child theme.<br><br>WordPress<br>I don&#039;t know my login ID.<br>&quot;I don&#039;t know the registered email address&quot;<br>We receive a lot of inquiries about this, so we hope this helps!<\/p>","protected":false},"excerpt":{"rendered":"<p>WordPress\u3092\u66f4\u65b0\u3057\u305f\u3089\u3001\u7a81\u7136\u767b\u9332\u3057\u3066\u3044\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u5165\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u4e0d\u5177\u5408\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u7ba1\u7406\u8005\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3082\u308f\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u304c\u884c\u3048\u306a\u3044\u3068\u3044\u3046\u30cf\u30d7\u30cb\u30f3\u30b0\u304c\u767a\u751f \u30b5\u30fc\u30d0\u30fc\u306e\u30d5\u30a1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14808,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[16,1447],"tags":[],"class_list":["post-14794","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-security-case"],"blocksy_meta":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other.png",720,540,false],"thumbnail":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other-150x150.png",150,150,true],"medium":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other-300x225.png",300,225,true],"medium_large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other.png",720,540,false],"large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other.png",720,540,false],"1536x1536":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other.png",720,540,false],"2048x2048":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other.png",720,540,false],"trp-custom-language-flag":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2025\/07\/Other-16x12.png",16,12,true]},"uagb_author_info":{"display_name":"\u682a\u5f0f\u4f1a\u793eHanamiWEB \u4ee3\u8868\u53d6\u7de0\u5f79 \u677e\u6d66\u307f\u3055","author_link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/author\/hanami\/"},"uagb_comment_info":0,"uagb_excerpt":"WordPress\u3092\u66f4\u65b0\u3057\u305f\u3089\u3001\u7a81\u7136\u767b\u9332\u3057\u3066\u3044\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u5165\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u4e0d\u5177\u5408\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u7ba1&hellip;","brizy_media":[],"_links":{"self":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/14794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/comments?post=14794"}],"version-history":[{"count":0,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/14794\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media\/14808"}],"wp:attachment":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media?parent=14794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/categories?post=14794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/tags?post=14794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}