Replace content via rest api only?

You can use filter for replace text in all post and all pages.
add this code to theme function.php

add_filter( 'the_content', 'filter_content_for_replace_text' );
function filter_content_for_replace_text($content){
    $content=str_replace("find","replace with",$content);
    return $content;
}

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