-
-
Save indie-rok/8a3d105e8d7998c61eb2b1a49aad72e1 to your computer and use it in GitHub Desktop.
This file contains 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, $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