Closed srtfisher closed 8 months ago
wp_update_post( [ 'ID' => $post, 'post_status' => 'archiveless', ], true, );
When the above code is run, the post is made archiveless BUT the Hide from Archives toggle does not appear in the editor as active. This is due to the meta not being set.
Hide from Archives
When the above code is run, the post is made archiveless BUT the
Hide from Archives
toggle does not appear in the editor as active. This is due to the meta not being set.