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

AxeWP / wp-graphql-rank-math / 14814360581

03 May 2025 08:31PM UTC coverage: 86.429% (-2.0%) from 88.44%
14814360581

Pull #121

github

web-flow
Merge 4b332cbd3 into 3bd3ede8c
Pull Request #121: dev: add support for lazy-loading `description`/`deprecationReason` config values

356 of 366 new or added lines in 65 files covered. (97.27%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.01 hits per line

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

98.33
/src/Type/WPObject/Settings/Meta.php
1
<?php
2
/**
3
 * The Rank Math titles and meta settings GraphQL Object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject
6
 */
7

8
declare( strict_types = 1 );
9

10
namespace WPGraphQL\RankMath\Type\WPObject\Settings;
11

12
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\AuthorArchiveMeta;
13
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\ContentTypeMeta;
14
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\DateArchiveMeta;
15
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\GlobalMeta;
16
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\HomepageMeta;
17
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\LocalMeta;
18
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\SocialMeta;
19
use WPGraphQL\RankMath\Type\WPObject\Settings\Meta\TaxonomyMeta;
20
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
21

22
/**
23
 * Class - Meta
24
 */
25
class Meta extends ObjectType {
26
        /**
27
         * {@inheritDoc}
28
         */
29
        protected static function type_name(): string {
30
                return 'Meta';
19✔
31
        }
32

33
        /**
34
         * {@inheritDoc}
35
         */
36
        public static function get_description(): string {
UNCOV
37
                return __( 'The RankMath SEO titles and meta site settings', 'wp-graphql-rank-math' );
×
38
        }
39

40
        /**
41
         * {@inheritDoc}
42
         */
43
        public static function get_fields(): array {
44
                return [
19✔
45
                        'authorArchives'               => [
19✔
46
                                'type'        => AuthorArchiveMeta::get_type_name(),
19✔
47
                                'description' => static fn () => __( 'Author Archive settings.', 'wp-graphql-rank-math' ),
19✔
48
                        ],
19✔
49
                        'contentTypes'                 => [
19✔
50
                                'type'        => ContentTypeMeta::get_type_name(),
19✔
51
                                'description' => static fn () => __( 'Content type settings.', 'wp-graphql-rank-math' ),
19✔
52
                        ],
19✔
53
                        'taxonomies'                   => [
19✔
54
                                'type'        => TaxonomyMeta::get_type_name(),
19✔
55
                                'description' => static fn () => __( 'Taxonomy settings.', 'wp-graphql-rank-math' ),
19✔
56
                        ],
19✔
57
                        'dateArchives'                 => [
19✔
58
                                'type'        => DateArchiveMeta::get_type_name(),
19✔
59
                                'description' => static fn () => __( 'Date Archive settings.', 'wp-graphql-rank-math' ),
19✔
60
                        ],
19✔
61
                        'global'                       => [
19✔
62
                                'type'        => GlobalMeta::get_type_name(),
19✔
63
                                'description' => static fn () => __( 'Global settings.', 'wp-graphql-rank-math' ),
19✔
64
                        ],
19✔
65
                        'local'                        => [
19✔
66
                                'type'        => LocalMeta::get_type_name(),
19✔
67
                                'description' => static fn () => __( 'Local settings.', 'wp-graphql-rank-math' ),
19✔
68
                        ],
19✔
69
                        'social'                       => [
19✔
70
                                'type'        => SocialMeta::get_type_name(),
19✔
71
                                'description' => static fn () => __( 'Social settings.', 'wp-graphql-rank-math' ),
19✔
72
                        ],
19✔
73
                        'homepage'                     => [
19✔
74
                                'type'        => HomepageMeta::get_type_name(),
19✔
75
                                'description' => static fn () => __( 'Homepage settings. Only used is the Homepage is set to display a list of posts.', 'wp-graphql-rank-math' ),
19✔
76
                        ],
19✔
77
                        'notFoundTitle'                => [
19✔
78
                                'type'        => 'String',
19✔
79
                                'description' => static fn () => __( 'Title tag on 404 Not Found error page.', 'wp-graphql-rank-math' ),
19✔
80
                        ],
19✔
81
                        'searchTitle'                  => [
19✔
82
                                'type'        => 'String',
19✔
83
                                'description' => static fn () => __( 'Title tag on search results page.', 'wp-graphql-rank-math' ),
19✔
84
                        ],
19✔
85
                        'shouldIndexSearch'            => [
19✔
86
                                'type'        => 'Boolean',
19✔
87
                                'description' => static fn () => __( 'Whether to index search result pages.', 'wp-graphql-rank-math' ),
19✔
88
                        ],
19✔
89
                        'shouldIndexPaginatedPages'    => [
19✔
90
                                'type'        => 'Boolean',
19✔
91
                                'description' => static fn () => __( 'Whether to index /page/2 and further of any archive.', 'wp-graphql-rank-math' ),
19✔
92
                        ],
19✔
93
                        'shouldIndexArchiveSubpages'   => [
19✔
94
                                'type'        => 'Boolean',
19✔
95
                                'description' => static fn () => __( 'Whether to index paginated archive pages from getting.', 'wp-graphql-rank-math' ),
19✔
96
                        ],
19✔
97
                        'shouldIndexPasswordProtected' => [
19✔
98
                                'type'        => 'Boolean',
19✔
99
                                'description' => static fn () => __( 'Whether to index password protected pages and posts.', 'wp-graphql-rank-math' ),
19✔
100
                        ],
19✔
101
                ];
19✔
102
        }
103
}
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