pryley
3/30/2017 - 2:08 PM

[Site Reviews snippet] Custom text strings

[Site Reviews snippet] Custom text strings

<?php

// Translate text strings
// http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
add_filter( 'gettext', function( $translated_text, $text, $domain ) {
    return ( $domain == 'site-reviews' && $translated_text == 'Submit your review' )
        ? __( 'Make it so!', 'site-reviews-custom' )
        : $translated_text;
}, 20, 3 );