Which hook runs first(init,… or ???) [duplicate]
Generally after_setup_theme is the first action hook available to themes, triggered immediately after the active theme’s functions.php file is loaded. At this stage, the current user is not yet authenticated.