Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Using new WC2.7 CRUD method to create/update _translation_porduct_type product meta #110

@decarvalhoaa

Description

@decarvalhoaa

Instead of using update_post_meta() function to add WooPoly custom product meta used here, we can now use the filter woocommerce_before_product_object_save defined here.

This filter filters the product object (and passes as well the product data_store object) before saving the data to the DB. The data_store object pointer is useful to adjust object props before save.

See this issue for further details.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions