Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Filter for changing the pagination Previous / Next text? Reply To: Filter for changing the pagination Previous / Next text?

#8807
Tom
Keymaster

Hi there,

There aren’t any filters, but you might be able to do this:

add_filter( 'gettext', function( $translated_text, $text, $domain ) {
    if ( '← Previous' === $translated_text ) {
        $translated_text = 'Your custom text';
    }

    if ( 'Next →' === $translated_text ) {
        $translated_text = 'Your other custom text';
    }

    return $translated_text;
}, 20, 3 );

Let me know 🙂