Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-includes/theme.php on line 623

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/custom_posts/custom_posts.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 46

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 67

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 75

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/pukiwiki.php on line 92

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiRender.php on line 70

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 181

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 538

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 695

Deprecated: Assigning the return value of new by reference is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/modPukiWiki/class/PukiWikiElement.php on line 1087

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112

Deprecated: Function ereg() is deprecated in /home/users/1/fool.jp-ichi/web/blog/wp-content/plugins/wp-ban/wp-ban.php on line 112
[WordPress] コメント欄の名前だけを必須に。 | おれせか
おれせか

なんかそれっぽいのをうにうに。

まんまだと、『名前とメールアドレスの入力を必須にする』でメアドも必須になっちゃうから。

  • %inst-dir%/wp-comments-post.php

『if ( ” == $comment_content )』のある行の上に以下を追加。

 //名前だけ必須
if(!$user->ID){
    if ('' == $comment_author)
        wp_die('名前を入力して下さい。');
} 

WordPressの『設定』->『ディスカッション』->『コメント表示条件』の『名前とメールアドレスの入力を必須にする』のチェックは外しておく。

PAGETOP
PAGETOP

Prev / Next in same category

PAGETOP

Comments (28)

コメント欄の名前だけを必須にする。

[2011/11/13 (日) 17:11]

This is worth sharing, this site did a good job

[2012/09/18 (火) 22:08]

Well written article , I appreciate very much

[2012/10/18 (木) 12:56]

私はこのブログは本当に私はそれを行うように確信させたことを申し上げたいと思います!おかげで、非常に良い記事。

[2012/12/20 (木) 16:32]

それは非常に良い記事と共有するためのおかげです!

[2013/04/07 (日) 17:49]

私は良い、長い時間のためにこのような良い記事を参照していない!

[2013/04/08 (月) 14:41]

コメント欄の名前だけを必須にする。

[2013/08/01 (木) 17:38]

まんまだと、『名前とメールアドレスの入力を必須にする』でメアドも必須になっちゃうから。

[2014/12/25 (木) 13:05]

Cheap nfl draft jerseys wholesale from china 2015

[2014/12/26 (金) 11:59]

?You are a chicken.Can you holesale from china 201

[2015/08/13 (木) 16:13]

とりあえず、しばらくはhtml直書きでネスト作ることも無さそうなので、無理やりにリストのネストの時のみ対応。

%inst-dir%/wp-includes/formatting.php のfunction wpautop(~){~}内。

[2015/09/16 (水) 16:01]

l直書きでネスト作るこ

[2015/10/13 (火) 16:58]

シャネル激安は近いうちに全く新しいのを発表して制限してシリーズを設計します。

シリーズの中ですべて設計がすべてきつくてすぐの流行っている傾向を貼って、
シャネル激安http://www.cctoh.com/
また(まだ)異なる風格の組み合わせ自由を行うことができます。
シャネルバッグ
シャネル財布
シャネル腕時計
シャネルピアス
シャネル眼鏡
シャネル靴
今おしゃれな女性ネットのファッションに従って小さくいっしょにシャネルが新しく制限して袋、
シャネル激安シリーズを包みを見てみに来を編みましょう!

[2015/12/01 (火) 18:37]

画面中央にこのボックスが表示されるサンプルで、ポップアップされたウィンドウ内でスクロールができるようにしたいのですが、どうしたらよいものか、と困っております。

[2016/01/07 (木) 11:13]

↑なふうにpukiwiki記法でリストのネストを書いた時、
本来の出力されるhtmlは以下のようになるはずなんじゃけど、

[2016/06/20 (月) 11:20]

Thank you a lot for sharing this with all of us you actually realize what you are speaking about! Bookmarked.post, Kindly also seek advice from my site =). We could have a link trade contract among us!

[2016/08/06 (土) 22:28]

In Japan, anime (アニメ) is everywhere, and not dakimakura pillow uk just in th Dakimakura e form of comic books or video cartoons. Anime is an integral part of its culture and without anime and manga, Japa hug pillow n will not be as intriguing and colorful as it is. By definition, anime is a simple animation created by hand or computer, but its

[2017/04/24 (月) 18:03]

N’hésitez pas à passer au magasin avec l’ordinateur cassé, nous vous donnerons notre avis et si feasible,
nous établirons un devis.

[2017/05/18 (木) 05:04]

Hello there, just was alert to your weblog thru Google, and found that it’s truly informative. I am going to watch out for brussels. Il appreciate if you proceed this in future. A lot of other people shall be benefited from your writing. Cheers!

[2017/06/18 (日) 19:11]

Discover what’s the deal with ingbacks? According to Wikipedia, WP supports automatic pingbacks where all the links in a published article can be pinged when the article is published?we supply cheap nfl jerseys That explains why I get messages about new comments? when posting an edit that cross-references another post of my own. Info on trackbacks and pingbacks in WP here.

[2017/06/18 (日) 21:29]

As a side note, the more we can use trackbacks, pingbacks, and backlinks to spread the love and our message, the better.we supply cheap nfl jerseys I encourage you to figure out how to use these tools as they can really make our words online much more effective and heard.

[2017/06/18 (日) 21:29]

I have noticed you don’t monetize your page,
don’t waste your traffic, you can earn extra bucks every month because
you’ve got high quality content. If you want to know how to make extra $$$, search for:
best adsense alternative Wrastain’s tools

[2017/08/21 (月) 19:30]

Vancouver?would surely demand a huge fee for a remarkable player equally blessed with pace and technique.

[2017/08/23 (水) 11:09]

“As a result, Milan have reportedly put Niang on the transfer list, and the Hammers are keen to swoop, according to Gazzetta dello Sport.”

[2017/08/24 (木) 15:43]

League match preview featuring Liverpool v ArsenalSunsport looks back at some of the most memorable.

[2017/09/01 (金) 10:11]

Have a natural attraction for women cosmetics and cheap vape store clothes, no more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment cheap vape store. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the cheap e-cigarettes.

[2018/05/30 (水) 18:31]

Work with a debit or charge card in any currency.

Nicely put. Kudos!

[2023/10/17 (火) 08:16]
PAGETOP

Comment Form

PAGETOP

Trackbacks (6)

《WordPress》コメントのメールアドレス欄を削除する

WordPressのコメント欄のメールアドレス必須がどうにも気に入らなくて、どうにかしようと思っていましたが、いろいろと考えた結果、「wp-comments-post.php」というファイルを修正することに…

[2010/02/16 (火) 22:20]

コメント欄の名前だけを必須にする。

メアド必須はいらないけど、名前必須は必要だのー。…

WordPress コメント時の必須項目 メールアドレス欄削除

WordPressでは、コメントするときには「名前とメールアドレスの入力を必須にする」というオプションがあります。 アドレスまではいらないんじゃないかな? コメントしづらいでしょうよ…

[2011/03/05 (土) 21:58]

[...] 以下の記事を参考にさせていただきました。  → おれせか:[WordPress] コメント欄の名前だけを必須に。 [...]

vans era

[WordPress] コメント欄の名前だけを必須に。 | おれせか

[2014/10/07 (火) 02:33]

อ่านเนื้อหา

[WordPress] コメント欄の名前だけを必須に。 | おれせか

[2021/08/01 (日) 20:32]
PAGETOP

Trackback URL

PAGETOP

Search