403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.15.206.105
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/giankuin/dangky.bnnagency.com/wp-content/themes/flatsome/inc/integrations/wcml/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/giankuin/dangky.bnnagency.com/wp-content/themes/flatsome/inc/integrations/wcml/class-wcml.php
<?php
/**
 * WooCommerce multilingual integration
 *
 * @author      UX Themes
 * @package     Flatsome\Integrations
 * @since       3.17.4
 */

namespace Flatsome\Integrations;

defined( 'ABSPATH' ) || exit;

/**
 * Class WCML
 *
 * @package Flatsome\Integrations
 */
class WCML {

	/**
	 * Static instance
	 *
	 * @var WCML $instance
	 */
	private static $instance = null;

	/**
	 * WCML constructor.
	 */
	private function __construct() {
		add_filter( 'wcml_multi_currency_ajax_actions', [ $this, 'multi_currency_ajax_actions' ] );
	}

	/**
	 * Adds custom actions to the WooCommerce Multilingual multi-currency ajax actions.
	 *
	 * @param array $ajax_actions The existing AJAX actions.
	 *
	 * @return array Returns the modified array of AJAX actions.
	 */
	public function multi_currency_ajax_actions( $ajax_actions ) {
		$ajax_actions[] = 'flatsome_ajax_add_to_cart';
		$ajax_actions[] = 'flatsome_quickview';
		$ajax_actions[] = 'flatsome_ajax_search_products';

		return $ajax_actions;
	}

	/**
	 * Initializes the object and returns its instance.
	 *
	 * @return WCML The object instance
	 */
	public static function get_instance() {
		if ( ! isset( self::$instance ) ) {
			self::$instance = new self();
		}

		return self::$instance;
	}
}

WCML::get_instance();


Youez - 2016 - github.com/yon3zu
LinuXploit