Created
March 4, 2012 07:40
-
-
Save BronsonQuick/1971144 to your computer and use it in GitHub Desktop.
Add the horizontal rule <hr> button back to the TinyMCE editor in WordPress
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 the horizontal rule button back to the WordPress TinyMCE editor | |
*/ | |
function sennza_hr_button($buttons) { | |
$buttons[] = 'hr'; | |
return $buttons; | |
} | |
add_filter( 'mce_buttons', 'sennza_hr_button' ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment