detect when a custom post is cretaed for the first time

you can see all of wordpress action hooks here – I would suggest looking into something like “updated_postmeta” or similar for you

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