[WORDPRESS] How to hide parent category registration of new category

Code

functions.php

function admin_style_category() {
echo '
<style>
div.term-parent-wrap{
display:none;
}
</style>'.PHP_EOL;
}
add_action('admin_print_styles', 'admin_style_category');

Related article