Home / Admin / Disable Redirect Logging in AIOSEO Redirects
Duplicate Snippet

Embed Snippet on Your Site

Disable Redirect Logging in AIOSEO Redirects

This filter can be used to skip logging redirect logging in AIOSEO Redirects.

10+
Code Preview
php
<?php
add_filter( 'aioseo_redirects_log_skip', 'redirects_log_skip', 10, 2 );
function redirects_log_skip( $skip, $data ) {
	if ( 404 === $data['http_code'] ) {
		$skip = true;
	}
	return $skip;
}

Comments

Add a Comment