Why should I use get_template_directory() when include files?

get_template_directory() can be filtered. This can be useful when a plugin wants to interact with your theme, for example when you want to write custom plugins to extend the theme without changing it. For example: add_filter( ‘template_directory’, function( $template_dir, $template, $theme_root ) { if ( some_condition( $theme_root ) ) { return plugin_dir_path( __FILE__ ) . … Read more

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