woocommerce_hpos_post_record_backfilled action-hookWC 8.5.0

Fired when the backing post record for an HPOS order is backfilled after an order update.

Usage

add_action( 'woocommerce_hpos_post_record_backfilled', 'wp_kama_woocommerce_hpos_post_record_backfilled_action' );

/**
 * Function for `woocommerce_hpos_post_record_backfilled` action-hook.
 * 
 * @param \WC_Order $order The order object.
 *
 * @return void
 */
function wp_kama_woocommerce_hpos_post_record_backfilled_action( $order ){

	// action...
}
$order(\WC_Order)
The order object.

Changelog

Since 8.5.0 Introduced.

Where the hook is called

OrdersTableDataStore::backfill_post_record()
woocommerce_hpos_post_record_backfilled
woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php 642
do_action( 'woocommerce_hpos_post_record_backfilled', $order );

Where the hook is used in WooCommerce

Usage not found.