redirection_redirect_counter

redirection_redirect_counter

Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.6.0

apply_filters('redirection_redirect_counter') is found 1 times:

  • /models/redirect/redirect.php line 774
     
    		// 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 !== null && $this->source_options->can_log() ) {
    			if ( $target === true && $this->match !== null ) {
    				$match_data = $this->match->get_data();