Skip to content

Instantly share code, notes, and snippets.

@cagriuckan
Created October 12, 2017 21:40
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 cagriuckan/c1b48ac2da34dd6493e35d0565b3c577 to your computer and use it in GitHub Desktop.
Save cagriuckan/c1b48ac2da34dd6493e35d0565b3c577 to your computer and use it in GitHub Desktop.
/* Add Next Page Button in First Row */
add_filter( 'mce_buttons', 'my_add_next_page_button', 1, 2 ); // 1st row
/**
* 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