Skip to content

Instantly share code, notes, and snippets.

@schutzsmith
Created August 31, 2013 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schutzsmith/6400056 to your computer and use it in GitHub Desktop.
Save schutzsmith/6400056 to your computer and use it in GitHub Desktop.
Custom set of default quick tags in Wordpress
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