Non editable custom taxonomy

When doing register_taxonomy, set the public parameter of the args argument to false.

Most basic example:

register_taxonomy( 'my_tax, 'post', [ 'public' => false ] );