bulk Update post_meta with default values
You can add a new bulk action for posts with this code : $postType = “post”; add_filter(“bulk_actions-edit-” . $postType, function ($actions) { $actions[“specialSave”] = “Special save”; return $actions; }, 20); add_filter(“handle_bulk_actions-edit-” . $postType, function ($sendback, $doaction, $post_ids) { if (“specialSave” !== $doaction) { return; } foreach ($post_ids as $idPost) { // action to do for … Read more