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

wp-graphql / wp-graphql-woocommerce / 11714183904

07 Nov 2024 12:23AM UTC coverage: 83.665% (-0.8%) from 84.451%
11714183904

push

github

web-flow
devops: Name officially changed to "WPGraphQL for WooCommerce" (#900)

* devops: Name officially changed to "WPGraphQL for WooCommerce"

* devops: GA workflow environment updated

* devops: GA workflow environment updated

* devops: composer-git-hooks downgraded to "2.8.5"

* devops: Unstable session manager tests skipped

* chore: cleanup applied

* devops: Docker configurations updated

* devops: Docker configurations updated

* devops: Docker configurations updated

* devops: Docker configurations updated

* devops: Docker configurations updated

2 of 8 new or added lines in 5 files covered. (25.0%)

268 existing lines in 20 files now uncovered.

12431 of 14858 relevant lines covered (83.67%)

71.79 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',
×
NEW
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

© 2025 Coveralls, Inc