woocommerce_hpos_enable_sync_on_read

woocommerce_hpos_enable_sync_on_read

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('woocommerce_hpos_enable_sync_on_read') is found 1 times:

  • /src/Internal/DataStores/Orders/OrdersTableDataStore.php line 1241
    			 * @param bool $read_on_sync_enabled Whether to sync on read.
    			 *
    			 * @since 8.1.0
    			 */
    			$data_sync_enabled = apply_filters( 'woocommerce_hpos_enable_sync_on_read', $data_sync_enabled );
    		}
    
    		$load_posts_for = array_diff( $order_ids, array_merge( self::$reading_order_ids, self::$backfilling_order_ids ) );
    		$post_orders    = $data_sync_enabled ? $this->get_post_orders_for_ids( array_intersect_key( $orders, array_flip( $load_posts_for ) ) ) : array();
    
    		foreach ( $data as $order_data ) {