Factory.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Compatibility\WpFastestCache; |
| 4 | |
| 5 | use WCML\Compatibility\ComponentFactory; |
| 6 | use WCML\StandAlone\IStandAloneAction; |
| 7 | |
| 8 | class Factory extends ComponentFactory implements IStandAloneAction { |
| 9 | |
| 10 | public function create() { |
| 11 | $hooks = []; |
| 12 | |
| 13 | if ( wcml_is_multi_currency_on() ) { |
| 14 | $hooks[] = new MulticurrencyHooks(); |
| 15 | } |
| 16 | |
| 17 | return $hooks; |
| 18 | } |
| 19 | } |
| 20 |