“indicates required fields” - How to hide it?

Hi, How to hide the text [“indicates required fields” ?
All people knows that * tells the field is required…

The filter gform_required_legend can be used…

add_filter( 'gform_required_legend', '__return_empty_string' );

Where do we put this? Do we put it in the css code?

add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );

Reference: Where Do I Put This Code?

This is PHP code, so you can add it to a functions.php for the theme (or preferably a child theme) or via a plugin dedicated to custom code snippets.