Skip to content

Commit

Permalink
Provide a word of warning to the end user
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Aug 6, 2018
1 parent f723579 commit f2f1c56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/extensibility/extending-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<img>` tag when the block attribute is set.
Expand Down

0 comments on commit f2f1c56

Please sign in to comment.