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

equalizedigital / accessibility-checker / 17297832630

28 Aug 2025 01:47PM UTC coverage: 59.256% (-1.6%) from 60.808%
17297832630

push

github

web-flow
Merge pull request #1171 from equalizedigital/william/pro-169-filter-post-types-at-save-time

Add initial support for handling of virtual posts

47 of 252 new or added lines in 13 files covered. (18.65%)

2 existing lines in 1 file now uncovered.

4123 of 6958 relevant lines covered (59.26%)

3.52 hits per line

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

26.67
/admin/class-meta-boxes.php
1
<?php
2
/**
3
 * Class for handling the editor meta box.
4
 *
5
 * @package Accessibility_Checker
6
 */
7

8
namespace EDAC\Admin;
9

10
/**
11
 * Class Meta_Box
12
 *
13
 * Handles the editor meta box registration and rendering.
14
 */
15
class Meta_Boxes {
16

17
        /**
18
         * Initialize the hooks for the editor meta box.
19
         *
20
         * @return void
21
         */
22
        public function init_hooks(): void {
23
                add_action( 'add_meta_boxes', [ $this, 'register_meta_boxes' ] );
4✔
24
        }
25

26
        /**
27
         * Register custom meta boxes for each post type.
28
         *
29
         * @since 1.10.0
30
         *
31
         * @return void
32
         */
33
        public function register_meta_boxes(): void {
NEW
34
                $post_types = Settings::get_scannable_post_types();
×
35
                if ( $post_types ) {
×
36
                        foreach ( $post_types as $post_type ) {
×
37
                                add_meta_box(
×
38
                                        'edac-meta-box',
×
39
                                        __( 'Accessibility Checker', 'accessibility-checker' ),
×
40
                                        [ $this, 'render' ],
×
41
                                        $post_type,
×
42
                                        'normal',
×
43
                                        'high'
×
44
                                );
×
45
                        }
46
                }
47
        }
48

49
        /**
50
         * Render the custom meta box html.
51
         *
52
         * @since 1.10.0
53
         *
54
         * @return void
55
         */
56
        public function render(): void {
57
                /**
58
                 * Fires before the meta box is rendered.
59
                 *
60
                 * @since 1.10.0
61
                 */
62
                do_action( 'edac_before_meta_box' );
2✔
63
                include_once plugin_dir_path( __DIR__ ) . 'partials/custom-meta-box.php';
2✔
64
                /**
65
                 * Fires after the meta box is rendered.
66
                 *
67
                 * @since 1.10.0
68
                 */
69
                do_action( 'edac_after_meta_box' );
2✔
70
        }
71
}
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