/* 【出力カスタマイズ】未来の日付の投稿を表示する */ function stop_post_status_future_func($data,$postarr) { if ( ( $data['post_type'] == 'schedule' && $data['post_status'] == 'future' ) && $postarr['post_status'] == 'publish' ){ $data['post_status'] = 'publish'; } return $data; }; add_filter( 'wp_insert_post_data', 'stop_post_status_future_func', 10, 2 );