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

wp-graphql / wp-graphql-woocommerce / 14788432316

01 May 2025 06:46PM UTC coverage: 83.59% (-0.03%) from 83.617%
14788432316

push

github

web-flow
Fix/recursive interface definitions (#934)

* fix: recursive interface definitions for Product, etc.

* devops: CI & Linter compliances met

* devops: lint-code.yml updated

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>

7 of 9 new or added lines in 8 files covered. (77.78%)

8 existing lines in 2 files now uncovered.

12424 of 14863 relevant lines covered (83.59%)

72.08 hits per line

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

0.0
/includes/class-admin.php
1
<?php
2
/**
3
 * Initializes a WooGraphQL Pro admin settings.
4
 *
5
 * @package WPGraphQL\WooCommerce\Pro
6
 * @since 1.0.0
7
 */
8

9
namespace WPGraphQL\WooCommerce;
10

11
use WPGraphQL\Admin\Settings\Settings;
12
use WPGraphQL\WooCommerce\Admin\General;
13

14
/**
15
 * Class Admin
16
 */
17
class Admin {
18
        /**
19
         * Admin constructor
20
         */
21
        public function __construct() {
22
                add_action( 'graphql_register_settings', [ $this, 'register_settings' ] );
×
23
        }
24

25
        /**
26
         * Registers the WPGraphQL for WooCommerce Settings tab.
27
         *
28
         * @param \WPGraphQL\Admin\Settings\Settings $manager  Settings Manager.
29
         * @return void
30
         */
31
        public function register_settings( Settings $manager ) {
32
                $manager->settings_api->register_section(
×
33
                        'woographql_settings',
×
34
                        [ 'title' => __( 'WooCommerce', 'wp-graphql-woocommerce' ) ]
×
35
                );
×
36

37
                $manager->settings_api->register_fields(
×
38
                        'woographql_settings',
×
39
                        General::get_fields()
×
40
                );
×
41
        }
42
}
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