• Resolved Venutius

    (@venutius)


    Hi there,

    I’m trying to write a plugin that checks the post title during editing and informs the user if the title has already been used on the site. I notice the js function getDocumentTitle() has been deprecated, but there’s no mention of a replacement. How can I monitor the post title in the current Block Editor?

    Thanks

    • This topic was modified 6 years ago by Venutius.
Viewing 1 replies (of 1 total)
  • Thread Starter Venutius

    (@venutius)

    I think I’ve found the answer to this: wp.data.subscribe()

Viewing 1 replies (of 1 total)
  • The topic ‘replacement for getDocumentTitle() in Block Editor’ is closed to new replies.