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

Yoast / wordpress-seo / 6eb2a3064d3d18e2d7ec871555a3f9228513b232

28 Apr 2026 01:38PM UTC coverage: 53.479%. First build
6eb2a3064d3d18e2d7ec871555a3f9228513b232

push

github

web-flow
Merge pull request #23205 from Yoast/feature/content-planner

Feature/content planner

9192 of 16934 branches covered (54.28%)

Branch coverage included in aggregate %.

641 of 1119 new or added lines in 76 files covered. (57.28%)

35182 of 66040 relevant lines covered (53.27%)

45550.03 hits per line

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

0.0
/src/integrations/blocks/content-planner-block.php
1
<?php
2

3
namespace Yoast\WP\SEO\Integrations\Blocks;
4

5
use Yoast\WP\SEO\Conditionals\AI_Conditional;
6
use Yoast\WP\SEO\Integrations\Integration_Interface;
7

8
/**
9
 * Registers the Content Planner Banner block.
10
 */
11
class Content_Planner_Block implements Integration_Interface {
12

13
        /**
14
         * Returns the conditionals based in which this loadable should be active.
15
         *
16
         * @return array<string> The conditionals.
17
         */
NEW
18
        public static function get_conditionals() {
×
NEW
19
                return [ AI_Conditional::class ];
×
20
        }
21

22
        /**
23
         * Registers hooks for the Content Planner Banner block.
24
         *
25
         * @return void
26
         */
NEW
27
        public function register_hooks() {
×
NEW
28
                \add_action( 'init', [ $this, 'register_block' ], 11 );
×
29
        }
30

31
        /**
32
         * Registers the content planner banner block type.
33
         *
34
         * @return void
35
         */
NEW
36
        public function register_block() {
×
NEW
37
                \register_block_type( \WPSEO_PATH . 'blocks/ai-content-planner/block.json' );
×
38
        }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc