の値を変更する考えがあるpost_modified
ので、値は と同じ値になりpost_date
ます。
post_modified
しかし、Wordpress にはリビジョン システムがあるので、リビジョン上の を と同じ値に変更したいと考えていますpost_date
。
これを変更するための私のクエリは次のとおりです。
$query = "UPDATE $wpdb->posts
SET
post_modified = '$recent->post_date',
post_modified_gmt = '$recent->post_date_gmt'
WHERE
ID = '$update->ID'";
$wpdb->query($query);
$recent->post_date is the post_date (scheduled time / time where our post will appear in the website)
$recent->post_date_gmt is post_date_gmt
$update->ID
posts テーブルのリビジョン ID です。
しかし、クエリを実行すると、値が変更されず、プラグインが停止します。
私が逃したものはありますか?それとも、Wordpress 自体が変更を許可していないのpost_modified
でしょうか?