Having unexpected difficulties with this. For add new page I check global variables $typenow and $pagenow. But these seem to be blank for edit custom post_type page. I've searched the source in affected files, but can't find anything to hook onto. This should be easy, right?.. -- Davit Barbakadze