| @@ -11,13 +11,13 @@ | ||
| 11 | 11 | declare (strict_types=1); |
| 12 | 12 | namespace WindPress\WindPress\Api\Admin\Settings; |
| 13 | 13 | |
| 14 | 14 | use WIND_PRESS; |
| 15 | +use WindPress\WindPress\Api\AbstractApi; | |
| 16 | +use WindPress\WindPress\Api\ApiInterface; | |
| 15 | 17 | use WP_REST_Request; |
| 16 | 18 | use WP_REST_Response; |
| 17 | 19 | use WP_REST_Server; |
| 18 | -use WindPress\WindPress\Api\AbstractApi; | |
| 19 | -use WindPress\WindPress\Api\ApiInterface; | |
| 20 | 20 | class Options extends AbstractApi implements ApiInterface |
| 21 | 21 | { |
| 22 | 22 | public function __construct() |
| 23 | 23 | { |
| @@ -45,8 +45,8 @@ | ||
| 45 | 45 | $options = (object) $options; |
| 46 | 46 | } |
| 47 | 47 | $options = apply_filters('f!windpress/api/admin/settings/options:store.before', $options); |
| 48 | 48 | update_option(WIND_PRESS::WP_OPTION . '_options', wp_json_encode($options, \JSON_THROW_ON_ERROR)); |
| 49 | - do_action('f!windpress/api/admin/settings/options:store.after', $options); | |
| 50 | - return new WP_REST_Response(['message' => 'Settings updated']); | |
| 49 | + do_action('a!windpress/api/admin/settings/options:store.after', $options); | |
| 50 | + return new WP_REST_Response(['message' => __('Settings updated', 'windpress')]); | |
| 51 | 51 | } |
| 52 | 52 | } |