Code snippet to fetch the custom fields used in a particular post_type in Wordpress