Delete the URL text box and wordpress form in the wordpress Comment Form

Source: Internet
Author: User

Delete the URL text box and wordpress form in the wordpress Comment Form

The original effect is as follows:

 

To remove this link form, you can find the corresponding form code in the comments. php file and delete it. But now you only need a very simple piece of code to remove it:

The Code is as follows:
Add_filter ('comment _ form_default_fields ', 'unset _ url_field ');
Funct (www.111cn.net) ion unset_url_field ($ fields ){
If (isset ($ fields ['url'])
Unset ($ fields ['url']);
Return $ fields;
}

You only need to add the above Code to the functions. php file in the topic to delete the website link form.
From: http://www.111cn.net/wy/wordpress/68255.htm


How to delete the wordpress Comment box

In single. php, find <? Php comments_template ();?>, Delete this file.

A wordpress plug-in that allows you to customize comment forms, add a mobile phone number, and remove email and website

Is this a plug-in ?! My wordpress is basically useless with plug-ins. It takes an hour to write such a simple function ......
The more plug-ins, the slower
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.