Created
May 8, 2019 19:48
-
-
Save rafaehlers/392ae116fd48921c8a91272c3d1da8d5 to your computer and use it in GitHub Desktop.
Change any GravityView text
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 // don't copy this line | |
| add_filter( 'gettext', 'gv_modify_text', 20, 3 ); | |
| function gv_modify_text( $translated_text, $text, $domain ) { | |
| if ( $translated_text === 'You do not have permission to edit this entry.') { | |
| $translated_text = __( 'You dont!', 'gravityview' ); | |
| } | |
| return $translated_text; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment