Removing "*" indicates required fields PHP code snippet not working

Hello, I have seen several posts regarding the php code needed to remove this line, but it is not working for me.

I am either using the wrong code:

add_filter( ‘gform_required_legend’, function( $legend, $form ) { return ‘* indicates required fields’; }, 10, 2 );

or putting it in the wrong place

wordpress > xyz PHP Code > PHP Code Snippets > add new

Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.