Where is the WP auto-save draft JavaScript?

If you write a title, then move away from (blur) that input field, WordPress will auto-save a draft for you, likely in order to create a post slug placeholder for you.

I’m looking to possibly extend this functionality to also save on blurring of the content body TinyMCE pane. The logic is not entirely straightforward — for example, it appears to saves a draft only when the post is yet unpublished — so I need to look further into the logic.

Read More

In order to scope this change, I need to find where in the JavaScript (?) codebase WordPress does this auto-saving. Having trouble so far. Does anyone know?

Related posts

Leave a Reply

1 comment