Adding custom functionality for the staff post type