• Hey guys I’m trying to remove the URL field from the comment form using some code I found here in the forum but it doesn’t seem to be working anymore.

    Here’s the code:

    function remove_comment_fields( $fields ) {
    	unset( $fields['url'] );
    
    	return $fields;
    }
    
    add_filter( 'comment_form_default_fields', 'remove_comment_fields', 60 );

    And here’s the original thread:

    https://wordpress.org/support/topic/unable-to-disable-website-field-in-comments/

    I’ve tried a bunch of different priority levels with no luck. Any ideas? Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Remove comment url field’ is closed to new replies.