New WordPress Developer APIs - The Interactivity API

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 4

  • @michal_kuczek
    @michal_kuczek 9 місяців тому +1

    Love the new often upload to the wordpress channel

  • @maxziebell4013
    @maxziebell4013 10 місяців тому +2

    It technically doesn't need to be a block... as long the API(JS) is loaded and we can access attributes on a site... as I understand it. A mixture of Alpine and HTMX.

  • @pasizdobrekuce
    @pasizdobrekuce 10 місяців тому

    IDK about "data-wp-on--click" syntax. 🤷‍♂ why not just infer data-wp and do on:click. For example, ... same for bind "bind:aria-expanded. For top level props just :interactive="{ "key": "value" }". I don't see a point in saying "data-wp" every single time. Also in the docs there is nowhere mentioned how to "talk" to database.