Skip to content

Instantly share code, notes, and snippets.

@bacoords
Created September 5, 2018 15:25
Show Gist options
  • Save bacoords/f217f3c340aaaae2af01ec69dca19e81 to your computer and use it in GitHub Desktop.
Save bacoords/f217f3c340aaaae2af01ec69dca19e81 to your computer and use it in GitHub Desktop.
<?php
/**
* Hides the thirsty link buttons
*/
function fsb_admin_hide_ta_mce_button(){
if( get_post_type() == 'post' ){
echo '<style>.mce-toolbar .mce-btn-group .mce-btn.ta-add-link-button + .mce-btn {display: none;}</style>';
}
}
add_action( 'admin_head', 'fsb_admin_hide_ta_mce_button' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment