wp_insert_post function and automatic trashing posts once is no longer in API

wp_insert_post function and automatic trashing posts once is no longer in API

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