{"id":13516234,"url":"https://github.com/roborourke/wp-graphql-meta","last_synced_at":"2025-07-29T10:44:06.335Z","repository":{"id":21193216,"uuid":"91895214","full_name":"roborourke/wp-graphql-meta","owner":"roborourke","description":"Adds meta data registered via register_meta() to the GraphQL output.","archived":false,"fork":false,"pushed_at":"2021-04-03T06:11:09.000Z","size":3,"stargazers_count":20,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-28T16:12:05.968Z","etag":null,"topics":["graphql","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roborourke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-20T14:39:28.000Z","updated_at":"2025-04-02T00:42:15.000Z","dependencies_parsed_at":"2022-07-27T01:47:16.150Z","dependency_job_id":null,"html_url":"https://github.com/roborourke/wp-graphql-meta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roborourke/wp-graphql-meta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-graphql-meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-graphql-meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-graphql-meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-graphql-meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roborourke","download_url":"https://codeload.github.com/roborourke/wp-graphql-meta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roborourke%2Fwp-graphql-meta/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262864258,"owners_count":23376461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","wordpress"],"created_at":"2024-08-01T05:01:20.602Z","updated_at":"2025-06-30T23:10:52.743Z","avatar_url":"https://github.com/roborourke.png","language":"PHP","readme":"WP GraphQL Meta\n===============\n\nThis plugin is an add-on for the awesome [WP GraphQL][wp-graphql]\n\nIt builds on top of both WP GraphQL and the REST API. Any\nmeta data you register using `register_meta()` will be available\nto retrieve in your results. You get your data in the REST API and\nGraphQL at the same time.\n\n## Installing\n\n1. Make sure that [WP GraphQL][wp-graphql] is installed and activated first.\n2. Upload this repo (or git clone) to your plugins folder and activate it.\n\n## Usage\n\nYour theme or other plugins may use meta data to add custom functionality. That\ndata or functionality can be beneficial / required for a front end or\nother app that consumes your API.\n\n```php\nregister_meta( 'post', 'custom-key', array(\n    'type' =\u003e 'string', // number, boolean, integer or a type from WPGraphQL\\Types\n    'description' =\u003e 'My custom field',\n    'single' =\u003e true,   // Whether to make this require a list or not.\n    'show_in_rest' =\u003e true, // Required to make this field public.\n) );\n```\n\nNOTE: If you use `WPGraphQL\\Types` instance the built in REST API will\nignore the field.\n\n[wp-graphql]: https://github.com/wp-graphql/wp-graphql\n","funding_links":[],"categories":["Plugins"],"sub_categories":["WordPress"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froborourke%2Fwp-graphql-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froborourke%2Fwp-graphql-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froborourke%2Fwp-graphql-meta/lists"}