Created
July 12, 2016 10:05
-
-
Save antcms/04374e6bf1ee64717722523a92f63330 to your computer and use it in GitHub Desktop.
Remove the Category menu for Authors in the WordPress Quick Edit Menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//REMOVE TAX IN QUICK EDITOR | |
add_action('admin_head', 'no_tax_display'); | |
function no_tax_display(){ | |
$user = wp_get_current_user(); | |
if ( in_array( 'author', (array) $user->roles ) ) { | |
echo '<style> | |
.inline-edit-categories, #acf-form-data { | |
display: none; | |
} | |
</style>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment