pre_redirect_guess_404_permalink

pre_redirect_guess_404_permalink

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_redirect_guess_404_permalink') is found 1 times:

  • /wp-includes/canonical.php line 947
    	 *
    	 * @param null|string|false $pre Whether to short-circuit guessing the redirect for a 404.
    	 *                               Default null to continue with the URL guessing.
    	 */
    	$pre = apply_filters( 'pre_redirect_guess_404_permalink', null );
    	if ( null !== $pre ) {
    		return $pre;
    	}
    
    	if ( get_query_var( 'name' ) ) {
    		$publicly_viewable_statuses   = array_filter( get_post_stati(), 'is_post_status_viewable' );