Server IP : 63.250.38.98 / Your IP : 216.73.216.235 Web Server : LiteSpeed System : Linux premium291.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : samejjip ( 1289) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/samejjip/www/wp-content/plugins/official-facebook-pixel/integration/ |
Upload File : |
<?php /** * Facebook Pixel Plugin EDDUtils class. * * This file contains the main logic for EDDUtils. * * @package FacebookPixelPlugin */ /** * Define EDDUtils class. * * @return void */ /* * Copyright (C) 2017-present, Meta, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ namespace FacebookPixelPlugin\Integration; defined( 'ABSPATH' ) || die( 'Direct access not allowed' ); /** * EDDUtils class. */ class EDDUtils { /** * Return the currency code. * * @since 3.0.0 * @return string The currency code. */ public static function get_currency() { return edd_get_currency(); } /** * Get the total of the cart. * * @since 3.0.0 * * @return float The total amount of the cart. */ public static function get_cart_total() { return EDD()->cart->get_total(); } }