PHP Класс WC_Product_Variation_Data_Store_CPT

Автор: WooThemes
Наследование: extends WC_Product_Data_Store_CPT, implements WC_Object_Data_Store_Interface
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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).

Описание методов

create() публичный Метод

Create a new product.
С версии: 2.7.0
public create ( &$product )

exclude_internal_meta_keys() защищенный Метод

Callback to remove unwanted meta data.
protected exclude_internal_meta_keys ( object $meta ) : boolean
$meta object
Результат boolean false if excluded.

read() публичный Метод

Reads a product from the database and sets its data to the class.
С версии: 2.7.0
public read ( &$product )

read_product_data() защищенный Метод

Read post data.
С версии: 2.7.0
protected read_product_data ( &$product )

update() публичный Метод

Updates an existing product.
С версии: 2.7.0
public update ( &$product )

update_attributes() защищенный Метод

Update attribute meta values.
С версии: 2.7.0
protected update_attributes ( &$product )

update_post_meta() публичный Метод

Helper method that updates all the post meta for a product based on it's settings in the WC_Product class.
С версии: 2.7.0
public update_post_meta ( &$product )

update_terms() защищенный Метод

For all stored terms in all taxonomies, save them to the DB.
С версии: 2.7.0
protected update_terms ( &$product )

update_version_and_type() защищенный Метод

Make sure we store the product version (to track data changes).
С версии: 2.7.0
protected update_version_and_type ( &$product )