WordPress notes

Tinymce extra buttons

wp-contents/themes/[active_theme]/functions.php

function enable_more_buttons($buttons) {$buttons[] = ‘fontselect’;$buttons[] = ‘fontsizeselect’;$buttons[] = ‘styleselect’;$buttons[] = ‘backcolor’;$buttons[] = ‘newdocument’;$buttons[] = ‘cut’;$buttons[] = ‘copy’;$buttons[] = ‘charmap’;$buttons[] = ‘hr’;$buttons[] = ‘visualaid’;
return $buttons;}add_filter(“mce_buttons_3”, “enable_more_buttons”);

Excerpt with tags

wp-includes/formating.php
in function function wp_strip_all_tags($string, $remove_breaks = false)
comment line around 3759 : $string = strip_tags($string);


Comments are closed.