Modify the “Previous” post navigation text

The code snippets below should be pasted into your child theme's functions.php file.

The post next pagination text is set to “Next” by default. Here is how to update the text to display to post title.

// Modify the "Previous" post navigation text.
add_filter( 'beans_previous_text_post_navigation_output', 'example_previous_text_post_navigation' );

function example_previous_text_post_navigation() {

  if ( $post = get_previous_post() ) {
    $text = $post->post_title;
  }

 return $text;

}

You may also use your own text instead of the post title. In that case, you may consider using the WordPress translate() function, if you need the string to be translatable.