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.2

apply_filters('strict_redirect_guess_404_permalink') is found 1 times:

  • /wp-includes/canonical.php line 965
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    * @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' ) ) . '%' );
    }