From f2f1c56c014e329531face4fbbd1fb813632f72a Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Mon, 6 Aug 2018 06:20:34 -0700 Subject: [PATCH] Provide a word of warning to the end user --- docs/extensibility/extending-blocks.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/extensibility/extending-blocks.md b/docs/extensibility/extending-blocks.md index 86985221c8154..846c2f524af1f 100644 --- a/docs/extensibility/extending-blocks.md +++ b/docs/extensibility/extending-blocks.md @@ -38,6 +38,8 @@ wp.hooks.addFilter( A filter that applies to the result of a block's `save` function. This filter is used to replace or extend the element, for example using `wp.element.cloneElement` to modify the element's props or replace its children, or returning an entirely new element. +Notably, while you _can_ modify a block's `save` result from a theme or plugin, this behavior won't persist when the theme or plugin is deactivated. + _Example:_ Include a custom data attribute on the Image Block `` tag when the block attribute is set.