I am trying to change the text of the page saved in the wordpress elementor editor, but it is not saved, which I change in the $data array. What do I do wrong?
function xy($data) {
$data['post_content']='test';
return $data;
}
add_filter('wp_insert_post_data', 'xy',10);