Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Purpose
This filter can be used to skip logging redirect logging in AIOSEO Redirects.
Arguments (1)
- $skip (boolean) – Skip logging.
- $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;
}