How to add action in wordpress custom plugin?

If you have access to the theme or child-theme, you could add your own hook with do_action() in the appropriate template files and then hook onto that with your add_action().

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