custom-meta change to allow easier reuse
After trying to use custom meta in a plugin as well as other code I ran into the problem where the custom_meta_api_get_type
getting called from multiple places causes problems: #261 (comment 524260)
This change allows reuse of the custom meta if called from multiple plugins.