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.