[wp-trac] [WordPress Trac] #45250: Backward compatibility: Impossible to prefill a new post in WP 5.0

WordPress Trac noreply at wordpress.org
Thu Nov 22 05:37:11 UTC 2018


#45250: Backward compatibility: Impossible to prefill a new post in WP 5.0
-----------------------------------------+---------------------
 Reporter:  Chouby                       |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  5.0
Component:  Editor                       |     Version:  5.0
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+---------------------
Changes (by pento):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 @Chouby: Are you able to hook into the `wp_insert_post_data` filter, and
 modify the post data when the `post_status` is set to `auto-draft`?

 It seems like that should work in both the classic and block editor to
 change the default data.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45250#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list