Restrict Attributes to Post Types if passed