Last active
January 15, 2019 14:25
-
-
Save httpstersk/f94d2839dbfd6c2c0e6e7e61cbd02e38 to your computer and use it in GitHub Desktop.
➒ Get the list of post tags
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 { getEntityRecords } = select( 'core' ); | |
const tags = getEntityRecords( 'taxonomy', 'post_tag', { orderby: 'count', order: 'desc' }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment