Hook

How to make a Toolset Taxonomy non-public

The Toolset Types Plugin allows to register a Taxonomy very quickly using an easy-to-use GUI, however it doesn’t offer the option to declare the public argument as false which will effectively remove any front end possibility to navigate to an Archive of that Term, or else somehow query in the URL by this taxonomy and its terms.

Declaring a Taxonomy as public = false does not remove any Backend Access so for example Term Edit Screen, assignment tools to assign terms to posts, and Toolset’s own query and views filters will continue to work.

To have a Taxonomy created by Toolset Types to be not public, you can (since the GUI setting for this is missing) apply a Custom PHP Filter. Note, you need WordPress 4.4 for this to work.

add_filter( 'register_taxonomy_args', 'make_taxonomy_private', 10, 3);
function make_taxonomy_private( $args, $taxonomy, $object_type ){
     // Only target the taxonomy with slug "my-awesome-taxonomy"
     if ( 'my-awesome-taxonomy' !== $taxonomy )
         return $args;
     //Set the public argument to false
     $args["public"] = false;
 }