Converts wordpress class into a resource type