is it for custom meta data?
-
Can I use this plugin for custom meta data, I created in php code? I have a custom woocommerce product type and e.G. the meta date “country”. I don`t want to create an extra entry i the product form only for the mdtf plugin, because this would not be very user friendly in my site. Is it possible to filter this meta data without an entry in the product form “meta data filter options”?
Or can I set this value programmatically?In the setting for the mdtf filtersI have to use a meta data with “medafi_” prefix.
But my custom product type has a meta-date “course_country”. How can I filter the course_country meta date?Or is this not possible with this plugin?
Thanks for your help?
EDIT:
ok, I found the solution for it.
It is the “Reflect value from meta key:” option in the filter section settings
Than I can update the meta date “meta_data_filter_cat” in php to set the date programmatically with th ecorrect category id:
E.g.
update_post_meta($product_id, ‘meta_data_filter_cat’, ’81’);Thanx for this nice plugin =)
- The topic ‘is it for custom meta data?’ is closed to new replies.