Advance Custom field Attribute Mapping.
-
I was searching for a way to map target attributes with advance custom fields inside products. i researched a little and found this : Use case 7: Mapping Custom Fields to Google Attributes
But im still unsure below im sharing the example : for example i created a field in acf with name “ACF_FIELD_NAME” so if add the data in that field on my products and add_filter in functions.php it does display the field inside target attributes but will it fetch the data?
add_filter( ‘woocommerce_gla_attribute_mapping_sources_custom_attributes’, function( $values ) { return array_merge( $values, [‘ACF_FIELD_NAME’]); } );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Advance Custom field Attribute Mapping.’ is closed to new replies.