Comprehensively Restrict Post Type Taxonomy to Logged-in Users
I’ve faced similar situations (say a client wants to see how a custom post type and/or taxonomy behaves before they’re ready for the general public to see it). In those cases I’ll use something like the following code snippet, added either to the plugin file (assuming I’ve built the CPT/taxonomy as a plugin) or directly … Read more