Last active
January 13, 2019 09:21
-
-
Save httpstersk/de64177e890f4a708cf63b2d1af29e61 to your computer and use it in GitHub Desktop.
➐ Toggle full–screen mode
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
const { dispatch, select } = wp.data; | |
const { isFeatureActive } = select( 'core/edit-post' ) | |
const { toggleFeature } = dispatch( 'core/edit-post' ); | |
if ( isFeatureActive( 'fullscreenMode' ) ) { | |
toggleFeature( 'fullscreenMode' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment