WP Manifestindependent plugin directory
manifest / unclassified / wp-graphql-enqueue

WPGraphQL for WordPress Scripts and Styles

Automatically add Enqueued Scripts and Styles to WPGraphQL

by Daniel Olson · github.com/emaildano/wp-graphql-enqueue · website

8stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/emaildano/wp-graphql-enqueue/archive/refs/heads/master.zip

Automatically add Enqueued Scripts and Styles to WPGraphQL

Requirements

Example Usage

Query

{
  styles {
    edges {
      node {
        handle
        id
        src
      }
    }
  }
}

Response

 {
  "node": {
    "handle": "common",
    "id": "common",
    "src": "/wp-admin/css/common.min.css"
  }
}