Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2. /**
  3. * Register a new teeny mce button for Press This
  4. *
  5. * @param array $buttons The teeny mce buttons array.
  6. * @param int $editor_id The editor id.
  7. *
  8. * @return array The filtered teeny mce buttons.
  9. */
  10. function wpdocs_teeny_mce_button( $buttons, $editor_id ) {
  11. array_push( $buttons, 'separator', 'my_new_button' );
  12. return $buttons;
  13. }
  14. add_filter( 'teeny_mce_buttons', 'wpdocs_teeny_mce_button', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement