Sequence of admin_post and admin_menu[ad_1] @threadi From the doc Remember that header() must be called before any actual output…