<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs" -->

---
title: Changes to the Interactivity API in WordPress 7.0
description: WordPress 7.0 introduces three notable changes to the Interactivity API. First, a new programmatic `watch()` function in `@wordpress/interactivity` lets...
canonical: https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Changes to the Interactivity API in WordPress 7.0 | daily.dev
og:description: WordPress 7.0 introduces three notable changes to the Interactivity API. First, a new programmatic `watch()` function in `@wordpress/interactivity` lets...
og:url: https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs
og:image: https://api.daily.dev/og/posts/MiNBI5SGs.png
og:image:alt: Changes to the Interactivity API in WordPress 7.0
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Changes to the Interactivity API in WordPress 7.0

**[Make WordPress Core](https://daily.dev/sources/wordpresscore)** · 3 min read · 1 upvotes · 0 comments

## Summary

WordPress 7.0 introduces three notable changes to the Interactivity API. First, a new programmatic `watch()` function in `@wordpress/interactivity` lets developers subscribe to reactive state changes outside of DOM directives, with support for cleanup callbacks and an `unwatch()` return value. Second, the `state.navigation.hasStarted` and `state.navigation.hasFinished` properties in `core/router` are deprecated and will trigger console warnings, with a proper navigation tracking API planned for 7.1. Third, `state.url` in `core/router` is now server-populated instead of client-initialized, eliminating the need to guard against an initial `undefined` value and enabling reliable client-side navigation tracking combined with `watch()`.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://make.wordpress.org/core/2026/03/04/changes-to-the-interactivity-api-in-wordpress-7-0/>

## Similar posts on daily.dev

- [Interactivity API’s client navigation improvements in WordPress 6.9](https://daily.dev/posts/interactivity-api-s-client-navigation-improvements-in-wordpress-6-9-s0crpxh6c) · Make WordPress Core · 0 upvotes · 0 comments
- [The JavaScript Navigation API Handles Every Route Change. Most Developers Still Use pushState.](https://daily.dev/posts/the-javascript-navigation-api-handles-every-route-change-most-developers-still-use-pushstate--ucdorqvcz) · Medium · 0 upvotes · 0 comments
- [Navigation API Reaches Baseline Newly Available as Replacement to the History API](https://daily.dev/posts/navigation-api-reaches-baseline-newly-available-as-replacement-to-the-history-api-ttq0nwviu) · InfoQ · 6 upvotes · 0 comments
- [Navigation API Baseline – Frontend Masters Blog](https://daily.dev/posts/navigation-api-baseline-frontend-masters-blog-5xkpfpwmf) · Frontend Masters · 34 upvotes · 2 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Changes to the Interactivity API in WordPress 7.0","url":"https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs"},"datePublished":"2026-03-04T10:35:07.313Z","dateModified":"2026-03-04T10:35:42.562Z","description":"WordPress 7.0 introduces three notable changes to the Interactivity API. First, a new programmatic `watch()` function in `@wordpress/interactivity` lets...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Make WordPress Core","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Make WordPress Core","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/892d1a79e30e4e8a911b5726c6fb1a06","url":"https://daily.dev/sources/wordpresscore"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/changes-to-the-interactivity-api-in-wordpress-7-0-minbi5sgs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,wordpress","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Make WordPress Core","item":"https://daily.dev/sources/wordpresscore"},{"@type":"ListItem","position":3,"name":"Changes to the Interactivity API in WordPress 7.0"}]}
```

