Created
January 22, 2020 22:56
-
-
Save laras126/a9744ce44b67f679c5200e4c7487b62f to your computer and use it in GitHub Desktop.
Log attributes for all blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logAttributes( attributes ) { | |
console.log( attributes ); | |
return attributes; | |
} | |
wp.hooks.addFilter( | |
'blocks.getBlockAttributes', | |
'storytime/panel', | |
logAttributes | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment