Method |
Description |
|
deferred_product_sync ( integer $product_id ) |
Sync a product. |
|
delete_order_downloadable_permissions ( $postid ) |
Remove downloadable permissions on permanent order deletion. |
|
delete_order_items ( $postid ) |
Remove item meta on permanent deletion. |
|
delete_post ( mixed $id ) |
Removes variations etc belonging to a deleted post, and clears transients. |
|
delete_product_query_transients ( ) |
Delete product view transients when needed e.g. when post status changes, or visibility/stock status is modified. |
|
edit_term ( id $term_id, id $tt_id, string $taxonomy ) |
When editing a term, check for product attributes. |
|
edited_term ( id $term_id, id $tt_id, string $taxonomy ) |
When a term is edited, check for product attributes and update variations. |
|
init ( ) |
Hook in methods. |
|
process_product_file_download_paths ( integer $product_id, integer $variation_id, array $downloads ) |
Update changed downloads. |
|
set_object_terms ( $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids ) |
Delete transients when terms are set. |
|
sync_product_stock_status ( integer $meta_id, integer $object_id, string $meta_key, mixed $meta_value ) |
When setting stock level, ensure the stock status is kept in sync. |
|
transition_post_status ( $new_status, $old_status, $post ) |
When a post status changes. |
|
trash_post ( mixed $id ) |
woocommerce_trash_post function. |
|
untrash_post ( mixed $id ) |
woocommerce_untrash_post function. |
|
update_order_item_metadata ( null $check, integer $object_id, string $meta_key, mixed $meta_value, mixed $prev_value ) : null | boolean |
Ensure floats are correctly converted to strings based on PHP locale. |
|
update_post_metadata ( null $check, integer $object_id, string $meta_key, mixed $meta_value, mixed $prev_value ) : null | boolean |
Ensure floats are correctly converted to strings based on PHP locale. |
|
variation_post_link ( $permalink, $post ) : string |
Link to parent products when getting permalink for variation. |
|
wp_insert_post_data ( array $data ) : array |
Forces the order posts to have a title in a certain format (containing the date). |
|