title: Get link to next page in post pagination (Wordpress)
body: <p>I know about the link pages function (<a href="https://developer.wordpress.org/reference/functions/wp_link_pages/" rel="nofollow noreferrer">https://developer.wordpress.org/reference/functions/wp_link_pages/</a>)</p>
  
  <p>to output a link to the next and previous part of paginated posts. But this always automatically does the output. Is there a variable I can access (or a function that returns) the link only, so I can continue coding with it?</p>