woocommerce_restock_refunded_items
Использование
add_filter( 'woocommerce_restock_refunded_items', 'wp_kama_woocommerce_restock_refunded_items_filter' ); /** * Function for `woocommerce_restock_refunded_items` filter-hook. * * @param $true * * @return */ function wp_kama_woocommerce_restock_refunded_items_filter( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
woocommerce_restock_refunded_items
woocommerce/includes/admin/meta-boxes/views/html-order-items.php 334
<td class="total"><input type="checkbox" id="restock_refunded_items" name="restock_refunded_items" <?php checked( apply_filters( 'woocommerce_restock_refunded_items', true ) ); ?> /></td>