wp-admin/includes/screen.php:242Set the current screen object
$hook_namestring|WP_Screenoptional''function set_current_screen( $hook_name = '' ) { WP_Screen::get( $hook_name )->set_current_screen();}Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/screen.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.