// LASCO security: deny WordPress authentication for five retired SEO accounts.
// Read-only with respect to posts, media and authorship. Reversible by disabling this snippet.
// Keep the sole administrator (user ID 13, login Long) untouched.
if ( ! defined( ‘ABSPATH’ ) ) { return; }
add_filter( ‘authenticate’, function( $user ) {
$retired_ids = array( 1, 14, 15, 16, 17 );
if ( $user instanceof WP_User && in_array( (int) $user->ID, $retired_ids, true ) ) {
return new WP_Error( ‘lasco_retired_account’, ‘This account is no longer authorized to sign in.’ );
}
return $user;
}, 100, 1 );
// Reject existing auth cookies and application-password authentication for these user IDs.
add_filter( ‘determine_current_user’, function( $user_id ) {
$retired_ids = array( 1, 14, 15, 16, 17 );
if ( in_array( (int) $user_id, $retired_ids, true ) ) {
return false;
}
return $user_id;
}, PHP_INT_MAX, 1 );