What happens?
I’m guessing that somehow the post or page is parsed before displaying, and then just split into two methods? I can’t seem to find any documentation on how the underlying
<?php wp_link_pages( $args ); ?>
method actually works. Is all of this processing done before the user loads the concerned page, or is it scanned and then stored separately inside the database?
WordPress uses the PHP
explodefunction to split the content into a array of ‘pages’. Happens in thesetup_postdatafunction with this code:$pages = explode('<!--nextpage-->', $content);