File: //tmp/update_pages.php
<?php
require_once('/var/www/sunsandholidays.com/wp-load.php');
$terms_content = file_get_contents('/tmp/terms_content.html');
$refund_content = file_get_contents('/tmp/refund_content.html');
wp_update_post(array(
'ID' => 6346,
'post_content' => $terms_content,
'post_title' => 'Terms and Conditions',
'post_name' => 'terms-and-conditions',
));
wp_update_post(array(
'ID' => 6347,
'post_content' => $refund_content,
'post_title' => 'Refund Policy',
'post_name' => 'refund-policy',
));
echo "Updated Terms (6346): " . strlen($terms_content) . " chars\n";
echo "Updated Refund (6347): " . strlen($refund_content) . " chars\n";
echo "Done\n";