nl_tokens: Get information about a given theme from the WordPress . org API . If provided with a callback will call that on succes with an object with theme details . Otherwise will return a promise .
pl_tokens: function ( themeId ) { const query = { action : 'theme_information' , // Return an `author` object containing `user_nicename` and `display_name` attrs. // This is for consistency with WP.com, which always returns the display name as `author`. 'request[fields][extended_author]' : true , 'request[slug]' : themeId , } ; return superagent . get ( WPORG_THEMES_ENDPOINT ) . <mask> ( 'Accept' , 'application/json' ) . query ( query ) . then ( ( { body } ) => body ) ; }