do_action( 'woocommerce_delete_order' )

When updating this object, to prevent infinite loops, use $wpdb to update data, since wp_update_post spawns more calls to the save_post action.


Description Description

This ensures hooks are fired by either WP itself (admin screen save), or an update purely from CRUD.


Source Source

File: includes/data-stores/abstract-wc-order-data-store-cpt.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.