Skip to content

Instantly share code, notes, and snippets.

@BFTrick
Created November 5, 2013 22:18
Show Gist options
  • Save BFTrick/7327334 to your computer and use it in GitHub Desktop.
Save BFTrick/7327334 to your computer and use it in GitHub Desktop.
Remove the Ninja Forms required fields string above a form with 1+ required strings.
<?php
/**
* Change text strings
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function my_nf_required_fields_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Fields marked with a * are required' :
$translated_text = __( '', 'ninja-forms' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_nf_required_fields_strings', 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment