woocommerce_graphql_can_use_debug_mode

woocommerce_graphql_can_use_debug_mode

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.9.4

apply_filters('woocommerce_graphql_can_use_debug_mode') is found 1 times:

  • /src/Api/Infrastructure/GraphQLControllerBase.php line 822
    			 * @param bool             $can_debug Whether the principal can use debug mode, derived from `$principal->can_use_debug_mode()`.
    			 * @param object           $principal The resolved principal.
    			 * @param \WP_REST_Request $request   The REST request being processed.
    			 */
    			$can_debug = apply_filters( 'woocommerce_graphql_can_use_debug_mode', $can_debug, $principal, $request );
    		} catch ( \Throwable $e ) {
    			return false;
    		}
    
    		return true === $can_debug;
    	}