Files
wp-graphql-woocommerce/includes/admin/class-general.php
T
Geoffrey K TaylorandGitHub c068671d93 feat: WooGraphQL settings tab added. (#726)
* feat: WooGraphQL settings tab added.

* chore: WPCS compliance met

* bugfix: Order Item Node ID implemented.

* chore: Deprecated "AppContext::getLoader" calls replaced.

* chore: WPCS compliance met.

* fix: DownloadableItem "id" field implemented
2023-04-04 12:02:25 -04:00

32 lines
727 B
PHP

<?php
/**
* Defines WooGraphQL's general settings.
*
* @package WPGraphQL\WooCommerce\Admin
*/
namespace WPGraphQL\WooCommerce\Admin;
/**
* General class
*/
class General extends Section {
/**
* Returns General settings fields.
*
* @return array
*/
public static function get_fields() {
return [
[
'name' => 'disable_ql_session_handler',
'label' => __( 'Disable QL Session Handler', 'wp-graphql-woocommerce' ),
'desc' => __( 'The QL Session Handler takes over management of WooCommerce Session Management on WPGraphQL request replacing the usage of HTTP Cookies with JSON Web Tokens.', 'wp-graphql-woocommerce' ),
'type' => 'checkbox',
'default' => 'off',
],
];
}
}