old_slug_redirect_post_id filter-hookWP 4.9.3

Filters the old slug redirect post ID.

Usage

add_filter( 'old_slug_redirect_post_id', 'wp_kama_old_slug_redirect_post_id_filter' );

/**
 * Function for `old_slug_redirect_post_id` filter-hook.
 * 
 * @param int $id The redirect post ID.
 *
 * @return int
 */
function wp_kama_old_slug_redirect_post_id_filter( $id ){

	// filter...
	return $id;
}
$id(int)
The redirect post ID.

Changelog

Since 4.9.3 Introduced.

Where the hook is called

wp_old_slug_redirect()
old_slug_redirect_post_id
wp-includes/query.php 1093
$id = apply_filters( 'old_slug_redirect_post_id', $id );

Where the hook is used in WordPress

Usage not found.