How to handle a post before publishing?

You need this filter:

function add_myself($content){
    return $content." myself";
}
add_filter('content_save_pre','add_myself');

Found the answer here: https://stackoverflow.com/a/4147860/982517

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