Created
January 17, 2019 17:09
-
-
Save httpstersk/d3567e1f7029230823051a30f3d3932c to your computer and use it in GitHub Desktop.
➊➊ Get all block objects for the current post
This file contains hidden or 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
const { select } = wp.data; | |
const { getBlocks } = select( 'core/editor' ); | |
const blocks = getBlocks(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment