Server IP : 192.64.112.168 / Your IP : 18.191.171.72 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/plugins/woocommerce/includes/ |
Upload File : |
<?php /** * WooCommerce Integrations class * * Loads Integrations into WooCommerce. * * @version 3.9.0 * @package WooCommerce\Classes\Integrations */ defined( 'ABSPATH' ) || exit; /** * Integrations class. */ class WC_Integrations { /** * Array of integrations. * * @var array */ public $integrations = array(); /** * Initialize integrations. */ public function __construct() { do_action( 'woocommerce_integrations_init' ); $load_integrations = array( 'WC_Integration_MaxMind_Geolocation', ); $load_integrations = apply_filters( 'woocommerce_integrations', $load_integrations ); // Load integration classes. foreach ( $load_integrations as $integration ) { $load_integration = new $integration(); $this->integrations[ $load_integration->id ] = $load_integration; } } /** * Return loaded integrations. * * @return array */ public function get_integrations() { return $this->integrations; } /** * Return a desired integration. * * @since 3.9.0 * @param string $id The id of the integration to get. * @return mixed|null The integration if one is found, otherwise null. */ public function get_integration( $id ) { if ( isset( $this->integrations[ $id ] ) ) { return $this->integrations[ $id ]; } return null; } }