Execute code only after user clicks ‘update’ button for CPT being edited

Execute code only after user clicks ‘update’ button for CPT being edited

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)