Home › Forums › Pro Support › Filter for changing the pagination Previous / Next text? › Reply To: Filter for changing the pagination Previous / Next text?
April 17, 2019 at 10:20 pm
#8807
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 🙂