Turning off trackbacks & comments

To prevent comments receiving add following line to your functions.php file:

add_filter( 'comments_open', '__return_false' );

And to prevent trackbacks receiving just add this snippet:

add_filter( 'pings_open', '__return_false' );

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