User role permissions based on taxonomies
You might be able to use the filter user_has_cap which is used when checking for a particular capability (found in /wp-includes/class-wp-user.php in has_cap): /** * Dynamically filter a user’s capabilities. * * @since 2.0.0 * @since 3.7.0 Added the user object. * * @param array $allcaps An array of all the user’s capabilities. * @param … Read more