Как зайти в админку WordPress, имея только доступ по FTP

Задача: зайти в админку сайта WordPress

Что имеем: Доступ по FTP

Доступов на почту администратора или на хостинг нет

В данном случае восстановление пароля по почте или через базу данных MySQL не получится!

Будем восстанавливать с помощью php файла.

Для данного способа вам понадобится доступ к FTP серверу, где хранится ваш сайт. Создайте новый PHP файл с произвольным именем (например password-new.php) и следующим содержанием:

<?php
add_action( 'init', 'my_password_recovery' );
function my_password_recovery() {
    $user = get_user_by( 'login', 'my-username' );
    wp_set_password( 'my-new-password', $user->ID );
}

Данный код находит в базе данных пользователя с заданным именем пользователя, и изменяет его пароль. Не забудьте заменить значения my-username и my-new-password на ваше имя пользователя и пароль.

После этого откройте ваш FTP клиент и подключитесь к серверу вашего сайта. В директории где установлен WordPress найдите папку wp-content и зайдите в неё. Найдите директорию my-plugins(не путайте с директорией plugins). Если директория my-plugins не существует — создайте её. Загрузите в директорию my-plugins созданный вами PHP файл.

Конечный путь до файла должен выглядеть примерно так: wordpress/wp-content/mu-plugins/password-new.php

После того как вы загрузили ваш файл, вы сможете выполнить вход в административную панель WordPress используя пароль, который вы указали в вашем PHP файле.

И наконец, не забудьте снова зайти в вашу директорию my-plugins и удалить созданный вами файл password-new.php. Если вы этого не сделаете, WordPress будет изменять пароль при каждом посещении вашего сайта, что существенно снизит скорость его работы.

Читайте также:

комментариев 87

  1. cialis tablets australia cialis priligy online australia how to purchase cialis in canada

  2. drugs not to take with viagra viagra actress how much does viagra cost

  3. запись на прием к гинекологу — сдать анализы на короновирус, врач кардиолог

  4. I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz reply as I’m looking to create my own blog and would like to find out where u got this from. thanks a lot

  5. Hey! I just wanted to ask if you ever have any issues with hackers?

    My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no back
    up. Do you have any methods to prevent hackers?

  6. адреналин л2 — бот для ла2, adrenalin бот

  7. Hi there! I know this is somewhat off topic but I
    was wondering which blog platform are you using for this website?
    I’m getting sick and tired of WordPress because I’ve
    had issues with hackers and I’m looking at alternatives for another platform.
    I would be awesome if you could point me in the direction of a good platform.

  8. Great post however I was wanting to know if you could write a litte more on this subject?
    I’d be very thankful if you could elaborate a little bit more.
    Kudos!

  9. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something enlightening to read?|

  10. Also, this will take away water-borne diseases in each utility.
    Among the top-rated gravity water filters accessible, the DOULTON W9361123 will be your superb decide.
    Clients can depend on this water filter safely due to the unbiased
    testing it went by way of. Its filter life can final for six months.

    British Berkefeld is not your typical stainless steel water system as
    it additionally features ceramic filter candles that may go along with a multi-stage filtration course of.

    This gravity system can afford a high stream price degree and ship faster outcomes.
    I’m 100% sure drinking cleaner and safer water wherever I’m going, whether or not at
    home or during a camp. This mannequin is of equivalent quality to
    different stainless steel water filters, so why not give it
    a attempt. The filtration system can take away microbiological elements out of
    the water, thus bettering the water high quality. Users can lengthen those
    months by merely cleansing the equipment more often.
    This assures potential contaminants to be eradicated once
    it reaches the patron.

  11. Новости:
    Goldman Sachs: доходность в 4. Goldman Sachs решил воспользоваться моделью ФРС, чтобы понять, чего ждать в случае роста доходности по десятилетним облигациям до 4.50% В то время как базовый прогноз Goldman Sachs предполагает рост доходности американских десятилетних облигаций до 3.25% к концу этого года, в банке задались вопросы пользователей по работе с Форумом, что будет, если движение окажется более агрессивным и доходность достигнет 4.5%.Россия заблокировала Golos из-за конфликта с разглашением данных Проблема в том, что из-за единственной страницы на сайте Golos, доступ к которой и должны были ограничить, Роскомнадзор заблокировал весь сайт.

    Искали взять микрозайм 30000 забилаго рф? Заходи на портал и попробуй взять ford-rzn.ru и получи микрокредит до 3000 рублей 100% процентов без отказа и проверок в городе Красноярск.

    Отказали в микрокредит? Возьмите наличку за 30 сек. Одобрение 99%,. Минимум условий. Оформите онлайн!
    Hаличные сразу
    Минимум проверок. 98% одобрений.

    Новости:
    ФАС заподозрила энергетиков в ценовом сговоре После начала расследования цены уже пошли вниз. Если сговор энергетиков удастся доказать, им грозят штрафы до 15% от годовой выручки.

  12. Do you mind if I quote a few of your articles as long
    as I provide credit and sources back to your weblog? My blog is in the exact same area of interest as
    yours and my visitors would genuinely benefit from some of the information you present here.

    Please let me know if this ok with you. Cheers!

  13. It’s a shame you don’t have a donate button! I’d most certainly donate to this excellent blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will share this site with my Facebook group. Talk soon!|

  14. My family always say that I am killing my time here at net, but I know
    I am getting know-how daily by reading such
    pleasant articles or reviews.

  15. Делайте правильные выводы в свой черед совершайте только обдуманные поступки. Подписывайтесь до гроба новости блога в свой черед задавайте вопросы!

    Я сторонник ручного способа онлайн-торговли, поскольку люблю, чтобы последнее ломтик оставалось чтобы мной, а не за роботом.

    Бесплатное учеба трейдингу необходимо каждому перед стартом биржевой деятельности. В интернете реклама призывает заниматься трейдингом. Постепенно рабочая сила начинает задумываться, а почему бы ему не заняться этим, ведь там можно заработать хорошую сумму денег. А примерно сказать ли это? Практически все новички не знают почему начать также потому начинают черпать всю информацию из ютуб роликов.

    Кроме этого цели должны быть конкретизированы как и выражены в денежном эквиваленте. Например, хочу прохладный автомобиль, поехать в каникулы на Мальдивы или купить дачный участок.

    Самое первое – игра стоит свеч постичь сколько ежемесячно вы сможете откладывать денег. Для этого сначала стоит только подсчитать доходы и расходы, то есть активы равным образом пассивы.
    https://richharbour.ru/
    Помните, что никто не закругляйся делиться с вами ценной информацией из альтруистических соображений. Ведь поставщики преследуют определенную цель – чаще только это получение прибыли в угоду свои подсказки.

    Конечно же, в этом есть доля истины — многие люди живут по стандартному циклу «дом-работа-дом-дети-выходные как и так по кругу». Разве можно им еще что-то планировать?

    Только реальные как и доступные способы инвестиций! ПАММ счета, стартапы, искусство вдобавок многое другое!

    вступительными (организационными) — формируются в любой момент дату организации компании; текущими (операционными) — составляются периодически в течение всего времени функционирования компании; антикризисными; объединительными (соединительными, планами слияния); разделительными;

    А есть какая нибудь программа по расчету финансового плана? От случая к случаю вносить свои данные (сумму инвестирования, супервыигрыш и т.

    Инвестируйте только тот капитал, который можете позволить себе потерять.

    Его задачей выступает обнаружение проблем, которые будут ждать юридическое харя при реализации собственных целей в рамках хозяйственной среды, а равно как выведение конкретных действий для разрешения ситуаций.

    В то же отрезок времени разграничение основных в свой черед не основных видов деятельности может быть производиться также в любой момент основе других показателей (как, величины доходов из-за различных видов деятельности).

    Потребительство или инвестиции? Роскошь перманентно грани заработка!

  16. Unquestionably believe that which you said. Your favorite reason appeared to be on the net the simplest thing to be aware of.
    I say to you, I certainly get annoyed while people think about worries that they plainly don’t know about.
    You managed to hit the nail upon the top as well as defined
    out the whole thing without having side-effects
    , people could take a signal. Will likely be back to get more.

    Thanks

  17. Новости:
    Как изменилось поведение покупателей и продавцов во время пандемии Как изменилось поведение покупателей и продавцов во время пандемии Из-за вызванного пандемией COVID-19 кризиса в новой реальности оказались не только потребители, вынужденные урезать свои расходы, но и ритейлеры.

    Нужен кредит 30000 на год на карту? Тебе на сайт и попробуй получить 76-buh.ru и получи микрокредит до 15000 рублей 100% процентов без проверки КИ без отказа в городе Красноярск.

    Срочно понадобились наличные?
    Деньги мгновенно
    Проверок KИ нет. 96% одобрений.

    Новости:
    Кредитные карты в Коряжме Интересуетесь кредитными картами в Коряжме по паспорту (без справки о доходах)? Сегодня у вас есть возможность оформить кредитку на максимально выгодных условиях. Мы сформировали лучших кредитных карт в вашем городе. Здесь вы найдете варианты с различными преимуществами — кэшбеком, бонусными программами, скидками и другими.

  18. This post is invaluable. Where can I find out more?

  19. софт для игровых клубов
    программа для казино
    лотерейная система для залов
    софт для игровых терминалов
    лотерейные терминалы
    мобильное онлайн казино
    программа казино для телефонов
    казино софт для телефонов
    онлайн казино интеграция
    слот игры интеграция

    [url=https://imperium-games.net/]systemes de loteries[/url]

  20. I know this if off topic but I’m looking into starting my own blog
    and was curious what all is needed to get setup? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% positive. Any tips or advice would be greatly appreciated.
    Cheers

  21. GerarrdoHap:

    Scorpions Lolita Girls Fuck Anthology

    loli broad foto video cp pthc forum

    ===>>> https://l24.im/XT6vEs <<>> l24.im/XT6vEs <<<===

  22. Greetings, I think your blog could be having internet browser compatibility problems.
    Whenever I take a look at your site in Safari, it looks fine
    however, when opening in Internet Explorer, it’s got some
    overlapping issues. I simply wanted to provide you with a quick heads
    up! Other than that, great site!

  23. Tremendous issues here. I’m very happy to look your post.
    Thanks so much and I’m having a look ahead to touch you.
    Will you please drop me a mail?

  24. Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  25. Do you have a spam problem on this blog; I also am a blogger, and I was wanting
    to know your situation; many of us have created some nice practices and
    we are looking to swap strategies with other folks, please shoot me an email if interested.

  26. I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire
    someone to do it for you? Plz reply as I’m
    looking to create my own blog and would like to know where u got this from.

    kudos

  27. Hello I am so thrilled I found your website, I really found you by accident, while I was searching on Digg for something else,
    Nonetheless I am here now and would just like to say thanks a lot
    for a incredible post and a all round interesting blog (I also
    love the theme/design), I don’t have time to read it all at the minute but I have saved it and also added
    in your RSS feeds, so when I have time I will be back to read a lot more, Please do
    keep up the awesome b.

  28. Hi everybody, here every one is sharing such familiarity,
    therefore it’s good to read this webpage, and I used to pay a quick visit
    this webpage everyday.

  29. Wow, wonderful weblog format! How lengthy have you been blogging for?

    you made blogging look easy. The total look of your website is excellent, let
    alone the content material!

  30. I don’t even know how I ended up here, but I thought this post was good.
    I don’t know who you are but definitely you are going
    to a famous blogger if you are not already 😉 Cheers!

  31. Excellent website you have here but I was curious about if you knew of any user discussion forums that cover the same topics discussed
    here? I’d really like to be a part of online community where I can get responses from other experienced people that
    share the same interest. If you have any recommendations, please let me know.
    Thanks a lot!

  32. Thanks for the good writeup. It actually was
    a entertainment account it. Glance complicated to more added agreeable from you!
    By the way, how could we communicate?

  33. Рябина — Барабарис Тунберга Голден Дрим, Древогубец Диана

  34. When I originally commented I clicked the «Notify me when new comments are added» checkbox and now each time a comment is added I get four
    emails with the same comment. Is there any way you can remove me from that service?

    Bless you!

  35. Having read this I thought it was extremely informative.
    I appreciate you spending some time and effort to put this informative
    article together. I once again find myself personally spending way too much time both reading and commenting.
    But so what, it was still worthwhile!

  36. It’s hard to find well-informed people for this subject,
    but you seem like you know what you’re talking about!
    Thanks

  37. Hi, the whole thing is going perfectly here and ofcourse
    every one is sharing data, that’s in fact good, keep up writing.

  38. Hi there, just became alert to your blog through
    Google, and found that it is truly informative. I am going to watch out for brussels.
    I’ll appreciate if you continue this in future.
    Many people will be benefited from your writing. Cheers!

    my webpage … THC edibles

  39. заблокировать группу в контакте — как удалить сайт из поиска google, как заблокировать аккаунт в инстаграме чужой навсегда

  40. This paragraph is really a pleasant one it helps new net visitors,
    who are wishing in favor of blogging.

  41. Hi to all, how is the whole thing, I think every one is getting
    more from this website, and your views are fastidious in support of new people.

  42. I blog frequently and I truly appreciate your content.
    The article has truly peaked my interest. I am going to take a note of
    your site and keep checking for new details about
    once per week. I opted in for your RSS feed as
    well.

  43. Hi to every , since I am truly eager of reading this weblog’s post to be updated daily.
    It consists of good stuff.

  44. I love your blog.. very nice colors & theme.

    Did you make this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to construct my own blog and would like to know where u got this from.

    kudos

  45. Hey! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to
    no backup. Do you have any methods to prevent hackers?

  46. Howdy! I know this is somewhat off-topic but I had to ask.

    Does building a well-established blog like yours require a large amount of work?
    I’m completely new to running a blog however I do write in my diary every day.
    I’d like to start a blog so I can share my own experience
    and thoughts online. Please let me know if you have any kind of suggestions
    or tips for new aspiring bloggers. Appreciate it!

    Feel free to visit my page … แทงหวยออนไลน์

  47. We are a family-orientated company that was built on the values of family and home.
    We understand how important it is to have a house that feels
    like a home and to do that you need to invest in high-quality home products.
    At Home Supply Guru, that is exactly what we offer–
    the very best in products for the home at reasonable prices.

  48. Every weekend i used to pay a visit this site, because i wish for enjoyment, as this this site conations really
    nice funny information too.

  49. Very nice post. I just stumbled upon your blog and wanted to mention that I’ve truly enjoyed surfing around your weblog posts.
    After all I’ll be subscribing in your feed and I’m hoping you write once
    more very soon!

  50. It’s an remarkable article for all the web people; they will take benefit from
    it I am sure.

  51. This design is wicked! You definitely know how to keep a reader amused.
    Between your wit and your videos, I was almost moved to start
    my own blog (well, almost…HaHa!) Wonderful
    job. I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

    Naughty friend girls

  52. Trực Tiếp đá Bóng K+. K+pm. Mu Vs Liverpool. Truc Tiep Bong Da Anh Hom Nayphim cuộc chiến những nàng dâu phần 3BDTT.tv đều sẽ vạc sóng thẳng cùng với chất lượng đảm bảo chất lượng nhất đến cho nhân viên xem.

  53. Pretty nice post. I just stumbled upon your weblog and wanted to
    say that I have really enjoyed surfing around your blog
    posts. In any case I’ll be subscribing to your feed and I hope you write again very
    soon!

  54. Hurrah! At last I got a web site from where I know
    how to truly get helpful facts concerning my study and knowledge.

  55. Very energetic article, I liked that a lot. Will there be
    a part 2?

  56. I enjoy what you guys are up too. This type of clever
    work and exposure! Keep up the good works guys I’ve added you guys to my own blogroll.

    Also visit my webpage; 007카지노

  57. Very nice post. I just stumbled upon your blog and wished to
    say that I have really enjoyed surfing around your blog posts.
    After all I’ll be subscribing to your rss feed and I hope you write again soon!

  58. Fantastic blog! Do you have any recommendations for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go
    for a paid option? There are so many choices out there that I’m completely
    overwhelmed .. Any tips? Thank you!

  59. We’re a bunch of volunteers aand starting a new scheme in our community.
    Your site provided us with useful info to work on. You have done
    an impressive activity and our whole community can be thanful to
    you.

    Also visit myy website: natural remedies diabetes type 2

  60. A person necessarily assist to make severely articles I’d state.
    This is the first time I frequented your website page and to this point?
    I amazed with the research you made to make this particular submit
    extraordinary. Wonderful process!

  61. Tuscany Suites And Casino Las Vegas Casino Magasin De Vernouillet Employ Geant Casino Mandelieu

  62. It’s going to be ending of mine day, however
    before finish I am reading this impressive post to increase my knowledge.

  63. Wow! This blog looks exactly like my old one!
    It’s on a completely different topic but it has pretty much the
    same layout and design. Wonderful choice of colors!

  64. Why people still make use of to read news papers when in this technological world all is existing on web?

  65. A motivating discussion is definitely worth comment. I
    believe that you need to publish more on this subject matter, it may not be a taboo subject
    but usually people do not talk about these topics. To
    the next! All the best!!

  66. Good day! I could have sworn I’ve been to this site before but after going through a few of the posts I realized it’s
    new to me. Nonetheless, I’m definitely happy
    I stumbled upon it and I’llbe book-marking it and
    checking back regularly!

    Here is my blog post: amazon ebook publishing company — Holly

  67. Sigma Jeu Casino T5 Beziers Casino Casino Marseille Aix Braquage

  68. Just wish to say your article is as astounding.
    The clarity in your post is simply spectacular and
    i can assume you’re an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post.
    Thanks a million and please carry on the enjoyable work.

  69. What’s Taking place i am new to this, I stumbled upon this I’ve found It absolutely helpful and it has
    aided me out loads. I hope to give a contribution & aid different users like its helped me.

    Great job.

  70. Unquestionably believe that which you stated. Your favorite reason appeared
    to be on the web the simplest thing to be aware of.
    I say to you, I certainly get annoyed while people think about worries that they just do not know about.
    You managed to hit the nail upon the top as well as defined out
    the whole thing without having side-effects , people could take
    a signal. Will likely be back to get more. Thanks

  71. Wow that was odd. I just wrote an really long comment but after
    I clicked submit my comment didn’t appear. Grrrr…
    well I’m not writing all that over again. Anyways, just wanted to say great blog!

  72. y:

    I do not even know how I ended up here, but I thought this post was good.
    I do not know who you are but certainly you are going to a famous blogger if you aren’t already 😉 Cheers!

  73. I simply couldn’t go away your web site prior to suggesting that I extremely enjoyed the usual
    information an individual provide on your visitors?
    Is going to be back often to check up on new posts

  74. I think the admin of this web site is actually
    working hard for his web site, since here every information is quality based stuff.

  75. Hi there, after reading this awesome piece of writing i am too delighted to share my knowledge here with friends.

Добавить комментарий

Ваш адрес email не будет опубликован.

После оплаты вы получите письмо на скачивание 3500 пресетов и инструкцию по их установке

+ПРЕСЕТЫ ИЗВЕСТНЫХ БЛОГЕРОВ

+ПОДАРКИ

На следующем шаге вам нужно ввести  эл.почту, на которую вы получите пресеты. Нажмите «ОТПРАВИТЬ», чтобы продолжить

*Ваши данные не будут переданы 3 лицам