redirection_redirect_counter

redirection_redirect_counter

Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.5.1

apply_filters('redirection_redirect_counter') is found 1 times:

  • /models/redirect/redirect.php line 637
     
    		// Update the counters
    		$this->last_count++;
    
    		if ( apply_filters( 'redirection_redirect_counter', $options['track_hits'], $url ) ) {
    			$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}redirection_items SET last_count=last_count+1, last_access=NOW() WHERE id=%d", $this->id ) );
    		}
    
    		if ( $target && $this->source_options && $this->source_options->can_log() ) {
    			if ( $target === true && $this->match ) {
    				$target = $this->action_type === 'pass' ? $this->match->get_data()['url'] : '';