We're merging with GenerateBlocks! Learn more here.

[Support request] Translation

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Translation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9805
    Jan
    Participant

    Where can i translate “Leave a comment”. I cannot find it is not in te language file.

    #9809
    Tom
    Keymaster

    Hi there,

    Are you not seeing it in your language here?: https://translate.wordpress.org/projects/wp-plugins/wp-show-posts/

    If you want to do it manually, try this function:

    add_filter( 'gettext', function( $text ) {
        if ( 'Leave a comment' === $text ) {
            $text = 'Your custom text';
        }
    
        return $text;
    } );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.