Forked from BFTrick/remove-nf-required-fields-string.php
Created
January 13, 2017 12:41
-
-
Save tcdevs/fe6d8ffb992560501e85c73f7381c301 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