Call a function with href

You can echo the return value of a function:

<a href="https://wordpress.stackexchange.com/questions/102196/<?php echo plugin_function(); ?>">

But without seeing the actual function, there is no way to give a more specific answer.

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