added CPT check for save post hook