Rename “Next” & “Previous” pagination text links in a blog archive

Use the following PHP code snippet to rename the Next and Previous pagination text links in your blog archive:

add_filter( 'generate_next_link_text', function() {
    return 'Next';
} );

add_filter( 'generate_previous_link_text', function() {
    return 'Previous';
} );

Just change Next and Previous text to whatever you want.