title: Customize WordPress pagination
body: <p>Good day, I am creating a plugin that will automatically posts a slideshow article with page break using <code>&lt;!--nextpage--&gt;</code> , my problem is i want to custom the pagination style instead of  page: 1,2 i want to show up as next-page and previous-page. how can i achieved this one? i want to put the code inside the plugin i don't want to add codes in the theme.</p>
  
  <p>I have already tried adding this code in my plugin but did not work:</p>
  
  <pre><code>$defaults = array(
      'before'           =&gt; '&lt;h1&gt;' . __( 'Pages:' ),
      'after'            =&gt; '&lt;/h1&gt;',
      'link_before'      =&gt; '',
      'link_after'       =&gt; '',
      'next_or_number'   =&gt; 'next',
      'separator'        =&gt; ' ',
      'nextpagelink'     =&gt; __( 'Next page' ),
      'previouspagelink' =&gt; __( 'Previous page' ),
      'pagelink'         =&gt; 'Page %',
      'echo'             =&gt; 1
  );
  wp_link_pages( $defaults ); 
  </code></pre>
  
  <p>This is the code in my plugin:</p>
  
  <pre><code>    $x = "";
  
   foreach ($leadamajig_data-&gt;questions as $post)
  {
  
  $lead_title =  '&lt;p&gt;&lt;h1 id="title"&gt;' . $post-&gt;title . '&lt;/a&gt;&lt;/h1&gt;&lt;/p&gt;';
  $lead_choices = '&lt;p&gt;&lt;h1 id="clicked"&gt;&lt;a hre="#"&gt;' . $post-&gt;choices-&gt;a . '&lt;/a&gt;&lt;/h1&gt;&lt;/p&gt;';
  $lead_choices2 ='&lt;p&gt;&lt;h1 id="clicked2"&gt;&lt;a hre="#"&gt;' .$post-&gt;choices-&gt;b . '&lt;/a&gt;&lt;/h1&gt;&lt;/p&gt;';
  $lead_choices3 = '&lt;p&gt;&lt;h1 id="clicked3"&gt;&lt;a hre="#"&gt;' . $post-&gt;choices-&gt;c . '&lt;/a&gt;&lt;/h1&gt;&lt;/p&gt;';
  
  $x = $x . $lead_title . $lead_choices . $lead_choices2 . $lead_choices3 . '&lt;!--nextpage--&gt;';
  
  }
  
  
  $my_post = array(
    'post_title'    =&gt; questions,
    'post_content'  =&gt; $x,
    'post_status'   =&gt; 'publish',
    'post_author'   =&gt; 1
  );
  
   wp_insert_post( $my_post );
  </code></pre>