Méthode | Description | |
---|---|---|
create ( &$product ) | Create a new product. | |
read ( &$product ) | Reads a product from the database and sets its data to the class. | |
update ( &$product ) | Updates an existing product. | |
update_post_meta ( &$product ) | Helper method that updates all the post meta for a product based on it's settings in the WC_Product class. |
Méthode | Description | |
---|---|---|
exclude_internal_meta_keys ( object $meta ) : boolean | Callback to remove unwanted meta data. | |
read_product_data ( &$product ) | Read post data. | |
update_attributes ( &$product ) | Update attribute meta values. | |
update_terms ( &$product ) | For all stored terms in all taxonomies, save them to the DB. | |
update_version_and_type ( &$product ) | Make sure we store the product version (to track data changes). |
protected exclude_internal_meta_keys ( object $meta ) : boolean | ||
$meta | object | |
Résultat | boolean | false if excluded. |
public read ( &$product ) |
protected update_attributes ( &$product ) |
public update_post_meta ( &$product ) |
protected update_terms ( &$product ) |
protected update_version_and_type ( &$product ) |