Created
November 5, 2013 22:18
-
-
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.
This file contains hidden or 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 | |
/** | |
* 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