Save_Post change Custom Post Type Post title to post id number
A very easy way to accomplish this would be to add something like this into your themes functions.php file: function update_post(int $id, \WP_Post $post, bool $update) { // Case the post object to an array $data = (array) $post; // Set the title to the ID of the post $data[‘post_title’] = $id; // We need … Read more