How to enforce a requirement for custom taxonomy
You could consider using the wp_insert_post_empty_content hook. This hook determines if a post is considered empty and if so, prevents it from being saved. For example: /** * Checks whether some post types have a topic. * * @param bool $maybe_empty Whether the post should be considered “empty”. * @param array $postarr Array of post … Read more