Integration.php
3 days ago
OrderMetaData.php
3 days ago
SettingsFields.php
3 days ago
ShippingRate.php
3 days ago
Tracker.php
3 days ago
Integration.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPDesk\FS\TableRate\ShippingMethodsIntegration; |
| 4 | |
| 5 | use FSVendor\WPDesk\PluginBuilder\Plugin\Hookable; |
| 6 | use FSVendor\WPDesk\PluginBuilder\Plugin\HookableCollection; |
| 7 | use FSVendor\WPDesk\PluginBuilder\Plugin\HookableParent; |
| 8 | |
| 9 | /** |
| 10 | * Integration class. |
| 11 | * Add all required hooks. |
| 12 | */ |
| 13 | class Integration implements Hookable, HookableCollection { |
| 14 | |
| 15 | use HookableParent; |
| 16 | |
| 17 | public function hooks() { |
| 18 | $this->add_hookable( new SettingsFields() ); |
| 19 | $this->add_hookable( new ShippingRate() ); |
| 20 | $this->add_hookable( new OrderMetaData() ); |
| 21 | $this->add_hookable( new Tracker() ); |
| 22 | |
| 23 | $this->hooks_on_hookable_objects(); |
| 24 | } |
| 25 | |
| 26 | } |
| 27 |