Created
August 31, 2013 19:16
-
-
Save schutzsmith/6400056 to your computer and use it in GitHub Desktop.
Custom set of default quick tags in Wordpress
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
function frl_quicktags_settings($qt_init, $editor_id){ | |
if($editor_id != 'content') | |
return $qt_init; //not a default case | |
/* default set of values - "strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close,fullscreen" */; | |
$qt_init['buttons'] = "strong,em,link,block,img,ul,ol,li,code,fullscreen"; ; | |
return $qt_init; | |
} | |
add_filter('quicktags_settings', 'frl_quicktags_settings', 2, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment