• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wp-graphql / wp-graphql / #887

16 Jan 2025 10:08PM UTC coverage: 83.189% (-0.8%) from 83.968%
#887

push

php-coveralls

web-flow
Merge pull request #3272 from wp-graphql/release/v1.30.0

release: v1.30.0

473 of 718 new or added lines in 23 files covered. (65.88%)

2 existing lines in 2 files now uncovered.

12995 of 15621 relevant lines covered (83.19%)

298.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Admin/Extensions/Registry.php
1
<?php
2
/**
3
 * Registry of WPGraphQL Extensions
4
 *
5
 * @todo This will eventually be replaced with a server registry.
6
 *
7
 * @package WPGraphQL\Admin\Extensions
8
 * @since @todo
9
 */
10

11
namespace WPGraphQL\Admin\Extensions;
12

13
/**
14
 * Class Registry
15
 *
16
 * @phpstan-type Extension array{
17
 *  name: non-empty-string,
18
 *  description: non-empty-string,
19
 *  plugin_url: non-empty-string,
20
 *  support_url: non-empty-string,
21
 *  documentation_url: non-empty-string,
22
 *  repo_url?: string,
23
 *  author: array{
24
 *   name: non-empty-string,
25
 *   homepage?: string,
26
 *  },
27
 * }
28
 */
29
final class Registry {
30
        /**
31
         * Gets the registry of WPGraphQL Extensions.
32
         *
33
         * @see docs/submit-extensions.md for more information on how to submit an extension.
34
         *
35
         * Fields:
36
         * - name: Required. The name of the extension.
37
         * - description: Required. A description of the extension.
38
         * - plugin_url: Required. The URL to the plugin.
39
         * - repo_url: Optional. The URL to the repository for the plugin.
40
         * - support_url: Required. The URL to the support page for the plugin.
41
         * - documentation_url: Required. The URL to the documentation for the plugin.
42
         * - author: Required. An array with the following fields:
43
         *   - name: Required. The name of the author.
44
         *   - homepage: Optional. The URL to the author's homepage.
45
         *
46
         * Array keys are solely used to sort the array and prevent merge conflicts when diffing. They should be unique.
47
         *
48
         * @return array<string,Extension>
49
         */
50
        public static function get_extenions(): array {
NEW
51
                return [
×
NEW
52
                        'wp-graphql/wp-graphql-smart-cache' => [
×
NEW
53
                                'name'              => 'WPGraphQL Smart Cache',
×
NEW
54
                                'description'       => 'A smart cache for WPGraphQL that caches only the data you need.',
×
NEW
55
                                'documentation_url' => 'https://github.com/wp-graphql/wp-graphql-smart-cache',
×
NEW
56
                                'plugin_url'        => 'https://wordpress.org/plugins/wp-graphql-smart-cache/',
×
NEW
57
                                'support_url'       => 'https://github.com/wp-graphql/wp-graphql-smart-cache/issues/new/choose',
×
NEW
58
                                'author'            => [
×
NEW
59
                                        'name'     => 'WPGraphQL',
×
NEW
60
                                        'homepage' => 'https://wpgraphql.com',
×
NEW
61
                                ],
×
NEW
62
                        ],
×
NEW
63
                        'wp-graphql/wpgraphql-acf'          => [
×
NEW
64
                                'name'              => 'WPGraphQL for Advanced Custom Fields',
×
NEW
65
                                'description'       => 'WPGraphQL for ACF is a FREE, open source WordPress plugin that exposes ACF Field Groups and Fields to the WPGraphQL Schema, enabling powerful decoupled solutions with modern frontends.',
×
NEW
66
                                'documentation_url' => 'https://acf.wpgraphql.com/',
×
NEW
67
                                'plugin_url'        => 'https://wordpress.org/plugins/wpgraphql-acf/',
×
NEW
68
                                'support_url'       => 'https://github.com/wp-graphql/wpgraphql-acf/issues/new/choose',
×
NEW
69
                                'author'            => [
×
NEW
70
                                        'name'     => 'WPGraphQL',
×
NEW
71
                                        'homepage' => 'https://wpgraphql.com',
×
NEW
72
                                ],
×
NEW
73
                        ],
×
NEW
74
                        'ashhitch/wp-graphql-yoast-seo'     => [
×
NEW
75
                                'name'              => 'WPGraphQL Yoast SEO Addon',
×
NEW
76
                                'description'       => 'This plugin enables Yoast SEO Support for WPGraphQL',
×
NEW
77
                                'documentation_url' => 'https://github.com/ashhitch/wp-graphql-yoast-seo',
×
NEW
78
                                'plugin_url'        => 'https://wordpress.org/plugins/add-wpgraphql-seo/',
×
NEW
79
                                'support_url'       => 'https://github.com/wp-graphql/wpgraphql-acf/issues/new/choose',
×
NEW
80
                                'author'            => [
×
NEW
81
                                        'name'     => 'Ash Hitchcock',
×
NEW
82
                                        'homepage' => 'https://www.ashleyhitchcock.com/',
×
NEW
83
                                ],
×
NEW
84
                        ],
×
NEW
85
                ];
×
86
        }
87
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc