[wp-trac] [WordPress Trac] #47926: Disable website field in comment section

WordPress Trac noreply at wordpress.org
Fri Aug 23 10:48:56 UTC 2019


#47926: Disable website field in comment section
-----------------------------+------------------------------
 Reporter:  longman2020      |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Comments         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi @longman2020, welcome to WordPress Trac!

 There are several ways to remove the URL field from comment form:
 * Using a code snipped like this in a child theme:
 {{{
 function wp47926_remove_url_from_comments( $fields ) {
         unset( $fields['url'] );
         return $fields;
 }
 add_filter( 'comment_form_default_fields',
 'wp47926_remove_url_from_comments' );
 }}}
 * Or using any plugin that offers a similar function:
  * [https://wordpress.org/plugins/comment-link-remove/ Comment Link Remove
 and Comment Tools]
  * [https://wordpress.org/plugins/cb-disable-comment-url/ CB Disable
 Comment URL]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47926#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list