Call current post parameters inside a plugin

Instead of using $post = get_post($post_id);, you can call global $post; which will load the value of the current post assuming that you have not triggered any other loops.

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