Created
April 2, 2024 08:29
-
-
Save joychetry/32e99b77374ce177d65361fecec81ab9 to your computer and use it in GitHub Desktop.
Bricks Builder: Remove URL From Comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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