How to add extra buttons to WordPress visual post editor

To make more user friendly of your wordpress theme, you can add extra buttons to WordPress visual post editor by adding some simple code into your functions.php file.

It's better to add this code just before the last line of your functions.php file and after adding this below code go to Posts > Add New. Then you see the the difference.

//Add Extra Buttons to WordPress Visual Post Editor

function enable_more_buttons($buttons) {
$buttons[] = 'fontselect';
$buttons[] = 'fontsizeselect';
$buttons[] = 'backcolor';
$buttons[] = 'image';
$buttons[] = 'media';
$buttons[] = 'anchor';
$buttons[] = 'sub';
$buttons[] = 'sup';
$buttons[] = 'hr';
$buttons[] = 'wp_page';
$buttons[] = 'cut';
$buttons[] = 'copy';
$buttons[] = 'paste';
$buttons[] = 'newdocument';
$buttons[] = 'code';
$buttons[] = 'cleanup';
return $buttons;
}
add_filter("mce_buttons_3", "enable_more_buttons");