Modify to use WC hook instead of post for HPOS compat.

This commit is contained in:
Vedanshu Jain 2023-02-21 14:05:48 +05:30
parent 0b513107b0
commit a1ebcedea7
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class WC_Post_Data {
add_action( 'delete_post', array( __CLASS__, 'delete_post' ) );
add_action( 'wp_trash_post', array( __CLASS__, 'trash_post' ) );
add_action( 'untrashed_post', array( __CLASS__, 'untrash_post' ) );
add_action( 'before_delete_post', array( __CLASS__, 'before_delete_order' ) );
add_action( 'woocommerce_before_delete_order', array( __CLASS__, 'before_delete_order' ) );
// Meta cache flushing.
add_action( 'updated_post_meta', array( __CLASS__, 'flush_object_meta_cache' ), 10, 4 );