aioseo_redirects_log_skip

Purpose

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

Arguments (1)

  1. $skip (boolean) – Skip logging.
  2. $data (array) – The redirect data.

Example code snippet

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;
}