File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,13 @@ public static function load() {
6767 );
6868
6969 // Setup QL session handler.
70- self ::$ session_header = apply_filters ( 'woocommerce_session_header_name ' , 'woocommerce-session ' );
71- add_filter ( 'woocommerce_cookie ' , array ( __CLASS__ , 'woocommerce_cookie ' ) );
72- add_filter ( 'woocommerce_session_handler ' , array ( __CLASS__ , 'init_ql_session_handler ' ) );
73- add_filter ( 'graphql_response_headers_to_send ' , array ( __CLASS__ , 'add_session_header_to_expose_headers ' ) );
74- add_filter ( 'graphql_access_control_allow_headers ' , array ( __CLASS__ , 'add_session_header_to_allow_headers ' ) );
70+ if ( ! defined ( 'NO_QL_SESSION_HANDLER ' ) ) {
71+ self ::$ session_header = apply_filters ( 'woocommerce_session_header_name ' , 'woocommerce-session ' );
72+ add_filter ( 'woocommerce_cookie ' , array ( __CLASS__ , 'woocommerce_cookie ' ) );
73+ add_filter ( 'woocommerce_session_handler ' , array ( __CLASS__ , 'init_ql_session_handler ' ) );
74+ add_filter ( 'graphql_response_headers_to_send ' , array ( __CLASS__ , 'add_session_header_to_expose_headers ' ) );
75+ add_filter ( 'graphql_access_control_allow_headers ' , array ( __CLASS__ , 'add_session_header_to_allow_headers ' ) );
76+ }
7577 }
7678
7779 /**
You can’t perform that action at this time.
0 commit comments