strict_redirect_guess_404_permalink

strict_redirect_guess_404_permalink

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('strict_redirect_guess_404_permalink') is found 1 times:

  • /wp-includes/canonical.php line 965
    		 * @since 5.5.0
    		 *
    		 * @param bool $strict_guess Whether to perform a strict guess. Default false (loose guess).
    		 */
    		$strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );
    
    		if ( $strict_guess ) {
    			$where = $wpdb->prepare( 'post_name = %s', get_query_var( 'name' ) );
    		} else {
    			$where = $wpdb->prepare( 'post_name LIKE %s', $wpdb->esc_like( get_query_var( 'name' ) ) . '%' );
    		}