Home / Disable Comment Form Website URL
Duplicate Snippet

Embed Snippet on Your Site

Disable Comment Form Website URL

Remove the Website URL field from the Comments form.
WPCode Team
<10
Code Preview
php
<?php
add_filter( 'comment_form_default_fields', function ($fields) {
	if ( isset( $fields['url'] ) ) {
		unset( $fields['url'] );
	}
	return $fields;
}, 150 );

Comments

Add a Comment