Created
February 22, 2019 10:46
-
-
Save httpstersk/d392e58d3d0081afe042846ad288890a to your computer and use it in GitHub Desktop.
➋➏ Get a revisions count of 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 { getCurrentPostRevisionsCount } = select( 'core/editor' ); | |
const revisions = getCurrentPostRevisionsCount(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment