- This topic has 5 replies, 4 voices, and was last updated 6 months, 2 weeks ago by .
-
Topic
-
We have an access to $attributes, $is_preview, and $post_id within the callback.
Couldn’t we have an access to the block name as well? It would be helpful when we want to handle multiple block types with a single callback function.
Perhaps:
$attributes['name']
or$attributes['blockname']
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.