Factory.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Compatibility\WcTabManager; |
| 4 | |
| 5 | use WCML\Compatibility\ComponentFactory; |
| 6 | use WCML_Tab_Manager; |
| 7 | use function WCML\functions\getSitePress; |
| 8 | use function WCML\functions\getWooCommerceWpml; |
| 9 | |
| 10 | class Factory extends ComponentFactory { |
| 11 | |
| 12 | public function create() { |
| 13 | $hooks = []; |
| 14 | |
| 15 | $hooks[] = new WCML_Tab_Manager( getSitePress(), getWooCommerceWpml(), self::getWpdb(), self::getElementTranslationPackage() ); |
| 16 | $hooks[] = new TranslationEditor\GroupsAndLabels(); |
| 17 | |
| 18 | return $hooks; |
| 19 | } |
| 20 | } |
| 21 |