<?php

add_action( 'after_setup_theme', function() {
	global $current_user;
	if ( ! empty( $current_user->test_24169 ) ) {
		die( 'too early' );
	}
} );
	
add_action( 'set_current_user', function() {
	global $current_user;
	$current_user->test_24169 = true;
} );