Skip to content

Instantly share code, notes, and snippets.

@indie-rok
Forked from TanvirAmi/page-break-wp.php
Last active March 17, 2017 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indie-rok/8a3d105e8d7998c61eb2b1a49aad72e1 to your computer and use it in GitHub Desktop.
Save indie-rok/8a3d105e8d7998c61eb2b1a49aad72e1 to your computer and use it in GitHub Desktop.
<?php
/**
* Add Next Page/Page Break Button
* in WordPress Visual Editor
*/
function my_add_next_page_button( $buttons, $ids ){
/* only add this for contenta editor */
if ( 'contenta' != $ids )
return $buttons;
/* add next page after more tag button */
array_splice( $buttons, 13, 0, 'wp_page' );
return $buttons;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment