add_action failed to display function by a plugin

You’re simply missing the return print or echo statement (instead of just return).

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