| 1 |
<?php |
| 2 |
|
| 3 |
class LitCommerce_EnableWooCommerceAPI implements LitCommerce_Automation |
| 4 |
{ |
| 5 |
public function getName() |
| 6 |
{ |
| 7 |
return __('Enable WooCommerce REST API', 'litcommerce'); |
| 8 |
} |
| 9 |
|
| 10 |
public function runStep() |
| 11 |
{ |
| 12 |
update_option('woocommerce_api_enabled', 'yes'); |
| 13 |
return new LitCommerce_Result_Object(true); |
| 14 |
} |
| 15 |
} |
| 16 |
|