What is a namespace?

Namespaces are an integral part of Shopify metafields and are therefore used as a mechanism for defining ACF custom fields, that ultimately will end up as Shopify metafields.

Namespaces can be used to ensure one app's metafields won’t clash with other apps’ metafields like e.g. Shopify Reviews, that uses a namespace of "spr". Using the default ‘accentuate’ namespace will ensure you are defining a separate set of metafields, but you can always override this on a field-by-field basis if you like.

It is also a great way to (technically) group sets of fields that naturally belong together. If you for example need to have two fields, "title" and "rating" for videos, you could opt for grouping them under the namespace "video" giving you two fields called "video.title" and "video.rating". Then if you need the same two fields for an image, you could place these under the namespace "image" giving you "image.title" and "image.rating" that don't collide with the video fields.

If you need to use ACF to manage metafields created from other apps, you can just match the namespace and key for the fields when defining the field type and ACF will automatically use any existing values going forward. Just take care to define a field type that makes sense with regard to any existing data.

Reserved namespaces

Some namespaces are reserved for internal ACF use and cannot be used for field definitions.

For all scopes:

  • acf_settings

For the Shop scope:

  • product_types
  • vendors 
  • locations 
  • globals 
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us