Как убрать сайт из комментариев WordPress

Небольшая заметка в мемы. Открываем файл wp-includes/comment-template.php и ищем функцию comment_form. В ней находим объявление массива $fields. И удаляем элемент url, не забывая при этом про скобки и запятые. Вот как было у меня:

$fields =  array(
                'author' => '

‘ . ‘ ‘ . ‘

‘, ’email’ => ‘

‘, ‘url’ => ‘

‘ . ‘

‘, );

Вот как стало:

$fields =  array(
                'author' => '

‘ . ‘ ‘ . ‘

‘, ’email’ => ‘

‘ );

Сохраняем файл и радуемся =)

7 комментариев к “Как убрать сайт из комментариев WordPress

  1. Hello would you mind letting me know which hosting company you’re using?
    I’ve loaded your blog in 3 different browsers and I must say
    this blog loads a lot faster then most. Can you suggest
    a good web hosting provider at a fair price? Thanks a lot, I appreciate it!

  2. I like the helpful info you provide in your articles. I will bookmark your blog and check again here regularly.

    I am quite sure I will learn a lot of new stuff right here!
    Best of luck for the next!

  3. I know this if off topic but I’m looking into starting my own weblog 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 internet savvy so I’m not 100% sure.
    Any recommendations or advice would be greatly appreciated.
    Thanks

  4. My programmer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about
    a year and am concerned about switching to another platform.
    I have heard great things about blogengine.net. Is there a way I can transfer all my wordpress posts
    into it? Any kind of help would be greatly appreciated!

Оставить ответ к cheap flights Отменить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *