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

Yoast / wordpress-seo / 19fd45952aca24fa50e6935224a9e7f266ee2ee4

08 Jul 2025 07:44AM UTC coverage: 53.615% (-0.07%) from 53.685%
19fd45952aca24fa50e6935224a9e7f266ee2ee4

push

github

web-flow
Merge pull request #22400 from Yoast/657-use-indexables-table-for-populating-the-available-pages-list-for-manual-selection

Create new endpoint for getting available pages to be manually selected for llms.txt

8246 of 14382 branches covered (57.34%)

Branch coverage included in aggregate %.

9 of 109 new or added lines in 10 files covered. (8.26%)

2 existing lines in 1 file now uncovered.

30490 of 57867 relevant lines covered (52.69%)

41261.19 hits per line

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

0.0
/src/conditionals/llms-txt-enabled-conditional.php
1
<?php
2

3
namespace Yoast\WP\SEO\Conditionals;
4

5
use Yoast\WP\SEO\Helpers\Options_Helper;
6

7
/**
8
 * Conditional that is only met when the 'llms.txt' feature is enabled.
9
 */
10
class Llms_Txt_Enabled_Conditional implements Conditional {
11

12
        /**
13
         * The options helper.
14
         *
15
         * @var Options_Helper
16
         */
17
        private $options;
18

19
        /**
20
         * Llms_Txt_Enabled_Conditional constructor.
21
         *
22
         * @param Options_Helper $options The options helper.
23
         */
NEW
24
        public function __construct( Options_Helper $options ) {
×
NEW
25
                $this->options = $options;
×
26
        }
27

28
        /**
29
         * Returns whether the 'llms.txt' feature has been enabled.
30
         *
31
         * @return bool `true` when the 'llms.txt' feature has been enabled.
32
         */
NEW
33
        public function is_met() {
×
NEW
34
                return $this->options->get( 'enable_llms_txt' );
×
35
        }
36
}
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