Add a shortcode in woo-function.php

I don’t see a shortcode in that code. Shortcodes are created using the add_shortcode function. What are you actually trying to do with the above code?

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