Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce-multilingual
/
classes
/
Rest
/
Store
:
HooksFactory.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace WCML\Rest\Store; use WCML\Rest\Functions; use WCML\StandAlone\IStandAloneAction; use function WCML\functions\isStandAlone; class HooksFactory implements \IWPML_REST_Action_Loader, IStandAloneAction { /** * @return \IWPML_Action[] */ public function create() { global $woocommerce_wpml; $hooks = []; if ( Functions::isStoreAPIRequest() ) { if ( ! isStandAlone() ) { $hooks[] = new ReviewsHooks(); } if ( wcml_is_multi_currency_on() ) { $hooks[] = new MulticurrencyHooks(); $hooks[] = new PriceRangeHooks( $woocommerce_wpml ); } } return $hooks; } }