redirect to custom php template in wordpress plugin directory

You should be using the template_include filter hook

This filter hook is executed immediately before WordPress includes the predetermined template file.

This can be used to override WordPress’s default template behavior.

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