Skip to content

Commit

Permalink
Change publicIntrospectionEnabled to String
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyzen committed Jan 26, 2023
1 parent 27c71b5 commit b54a158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions woonuxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
Author: Scott Kennedy
Author URI: http://scottyzen.com
Plugin URI: http://woonuxt.com
Version: 1.0.6
Version: 1.0.8
*/

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

add_action('admin_enqueue_scripts', 'load_admin_style_woonuxt');
function load_admin_style_woonuxt() {
wp_enqueue_style('admin_css_woonuxt', plugins_url('assets/styles.css', __FILE__, false, '1.0.6'));
wp_enqueue_style('admin_css_woonuxt', plugins_url('assets/styles.css', __FILE__, false, '1.0.0'));
// wp_enqueue_script('admin_js', plugins_url('/assets.admin.js', __FILE__));
}

Expand Down Expand Up @@ -450,8 +450,9 @@ class="widefat"
'description' => __( 'Most expensive product price', 'woonuxt' ),
],
'publicIntrospectionEnabled' => [
'type' => 'Boolean',
'type' => 'String',
'description' => __( 'Is public introspection enabled in WPGraphQL', 'woonuxt' ),
'default' => 'off',
],
'productsPerPage' => [
'type' => 'Int',
Expand Down Expand Up @@ -484,7 +485,6 @@ class="widefat"
$options['maxPrice'] = $max_price;

// /wp-admin/admin.php?page=graphql-settings
// graphql_general_settings[public_introspection_enabled]
$options['publicIntrospectionEnabled'] = get_option( 'graphql_general_settings' )['public_introspection_enabled'];


Expand Down

0 comments on commit b54a158

Please sign in to comment.