<?php 

 add_action('init', 'add_button_callout');
 
 function add_button_callout() {
   if ( current_user_can('edit_posts') &&  current_user_can('edit_pages') )
   {
     add_filter('mce_external_plugins', 'add_plugin_callout');
     add_filter('mce_buttons_3', 'register_button_callout');
   }
}

function register_button_callout($buttons) {
   array_push($buttons, "callout");
   return $buttons;
}

function add_plugin_callout($plugin_array) {
   $plugin_array['callout'] = get_template_directory_uri().'/framework/tinymce/callout.js';
   return $plugin_array;
}
