woocommerce_tracker_last_send_interval
Использование
add_filter( 'woocommerce_tracker_last_send_interval', 'wp_kama_woocommerce_tracker_last_send_interval_filter' ); /** * Function for `woocommerce_tracker_last_send_interval` filter-hook. * * @param $strtotime * * @return */ function wp_kama_woocommerce_tracker_last_send_interval_filter( $strtotime ){ // filter... return $strtotime; }
- $strtotime
- -
Где вызывается хук
woocommerce_tracker_last_send_interval
woocommerce/includes/class-wc-tracker.php 63
if ( $last_send && $last_send > apply_filters( 'woocommerce_tracker_last_send_interval', strtotime( '-1 week' ) ) ) { // phpcs:ignore