Last active
March 17, 2017 04:46
-
-
Save TanvirAmi/78650e644c75a86d8039a1fe7fe05579 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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