woocommerce_update_user_last_active_threshold

woocommerce_update_user_last_active_threshold

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.8.1

apply_filters('woocommerce_update_user_last_active_threshold') is found 1 times:

  • /includes/wc-user-functions.php line 1116
    		 * @return int
    		 *
    		 * @since 10.7.0
    		 */
    		$threshold = (int) apply_filters( 'woocommerce_update_user_last_active_threshold', $threshold );
    
    		$now         = time();
    		$last_active = get_user_meta( $user_id, 'wc_last_active', true );
    		if ( ! $last_active || ( $now - $last_active ) > $threshold ) {
    			update_user_meta( $user_id, 'wc_last_active', (string) $now, (string) $last_active );
    		}