Skip to content

Instantly share code, notes, and snippets.

@TanvirAmi
Last active March 17, 2017 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TanvirAmi/78650e644c75a86d8039a1fe7fe05579 to your computer and use it in GitHub Desktop.
Save TanvirAmi/78650e644c75a86d8039a1fe7fe05579 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, $id ){
/* only add this for content editor */
if ( 'content' != $id )
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