Created
January 12, 2019 18:52
-
-
Save httpstersk/d5c39c62134c942a9192e5e773d73e94 to your computer and use it in GitHub Desktop.
➏ Make the post `sticky`
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 { dispatch } = wp.data; | |
const { editPost } = dispatch( 'core/editor' ); | |
editPost( { sticky: true } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment