woocommerce_hpos_sync_ignored_order_props
Allows modifying the list of order properties that are ignored during HPOS synchronization or verification.
Usage
add_filter( 'woocommerce_hpos_sync_ignored_order_props', 'wp_kama_woocommerce_hpos_sync_ignored_order_props_filter' ); /** * Function for `woocommerce_hpos_sync_ignored_order_props` filter-hook. * * @param string[] $array List of order properties or meta keys. * * @return string[] */ function wp_kama_woocommerce_hpos_sync_ignored_order_props_filter( $array ){ // filter... return $array; }
- $array(string[])
- List of order properties or meta keys.
Changelog
Since 8.6.0 | Introduced. |
Where the hook is called
woocommerce_hpos_sync_ignored_order_props
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 350
$ignored_props = apply_filters( 'woocommerce_hpos_sync_ignored_order_props', array() );