Skip to content

Instantly share code, notes, and snippets.

@joychetry
Created April 2, 2024 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joychetry/32e99b77374ce177d65361fecec81ab9 to your computer and use it in GitHub Desktop.
Save joychetry/32e99b77374ce177d65361fecec81ab9 to your computer and use it in GitHub Desktop.
Bricks Builder: Remove URL From Comments
<?php
add_filter( 'comment_form_fields', 'c_customize_bricks_comment_form_fields' );
function c_customize_bricks_comment_form_fields($fields) {
if(isset($fields['url'])){
unset( $fields['url'] ); // remove Comment Author URL field
}
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment