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

AxeWP / wp-graphql-rank-math / 15507492505

07 Jun 2025 11:44AM UTC coverage: 86.429% (-2.0%) from 88.44%
15507492505

push

github

web-flow
dev: add support for lazy-loading `description`/`deprecationReason` config values (#121)

* chore: update strauss and deps

* dev: use callable descriptions/deprecations

* fix: dont prefix `NodeWithRankMathSeo`

* chore: fix backcompat on connections

* chore: update dep

* chore: update deps

* tests: ensure schema can build

* chore: update and cleanup

* fix: regenerate autoloader

357 of 367 new or added lines in 66 files covered. (97.28%)

60 existing lines in 60 files now uncovered.

2541 of 2940 relevant lines covered (86.43%)

11.49 hits per line

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

96.55
/src/Type/WPObject/Settings/Sitemap/General.php
1
<?php
2
/**
3
 * The General sitemap GraphQL object.
4
 *
5
 * @package WPGraphQL\RankMath\Type\WPObject\Settings\Sitemap
6
 */
7

8
declare( strict_types = 1 );
9

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

12
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType;
13

14
/**
15
 * Class - General
16
 */
17
class General extends ObjectType {
18
        /**
19
         * {@inheritDoc}
20
         */
21
        protected static function type_name(): string {
22
                return 'SitemapGeneralSettings';
20✔
23
        }
24

25
        /**
26
         * {@inheritDoc}
27
         */
28
        public static function get_description(): string {
UNCOV
29
                return __( 'The RankMath SEO Sitemap general settings.', 'wp-graphql-rank-math' );
×
30
        }
31

32
        /**
33
         * {@inheritDoc}
34
         */
35
        public static function get_fields(): array {
36
                return [
20✔
37
                        'canPingSearchEngines'    => [
20✔
38
                                'type'              => 'Boolean',
20✔
39
                                'deprecationReason' => static fn () => __( 'This feature is no longer supported by Google, and has been removed from RankMath v1.0.211+.', 'wp-graphql-rank-math' ),
20✔
40
                                'description'       => static fn () => __( 'Whether to notify search engines when the sitemap is updated.', 'wp-graphql-rank-math' ),
20✔
41
                        ],
20✔
42
                        'excludedPostDatabaseIds' => [
20✔
43
                                'type'        => [ 'list_of' => 'Int' ],
20✔
44
                                'description' => static fn () => __( 'A list of post IDs excluded from the sitemap. This option **applies** to all posts types including posts, pages, and custom post types.', 'wp-graphql-rank-math' ),
20✔
45
                        ],
20✔
46
                        'excludedTermDatabaseIds' => [
20✔
47
                                'type'        => [ 'list_of' => 'Int' ],
20✔
48
                                'description' => static fn () => __( 'A list of term IDs excluded from the sitemap. This option **applies** to all taxonomies.', 'wp-graphql-rank-math' ),
20✔
49
                        ],
20✔
50
                        'hasFeaturedImage'        => [
20✔
51
                                'type'        => 'Boolean',
20✔
52
                                'description' => static fn () => __( 'Whether the Featured Image is included in sitemaps too, even if it does not appear directly in the post content.', 'wp-graphql-rank-math' ),
20✔
53
                        ],
20✔
54
                        'hasImages'               => [
20✔
55
                                'type'        => 'Boolean',
20✔
56
                                'description' => static fn () => __( 'Whether reference to images from the post content is included in sitemaps.', 'wp-graphql-rank-math' ),
20✔
57
                        ],
20✔
58
                        'linksPerSitemap'         => [
20✔
59
                                'type'        => 'Int',
20✔
60
                                'description' => static fn () => __( 'Max number of links on each sitemap page.', 'wp-graphql-rank-math' ),
20✔
61
                        ],
20✔
62
                ];
20✔
63
        }
64
}
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