-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgp-aws-translate.php
More file actions
29 lines (24 loc) · 924 Bytes
/
gp-aws-translate.php
File metadata and controls
29 lines (24 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
defined( 'ABSPATH' ) or die( 'This plugin must be run within the scope of WordPress.' );
define( 'GP_AWS_PLUGIN_PATH', dirname( __FILE__ ) );
/*
* Plugin Name: GlotPress Amazon Translate Plugin
* Plugin URI: https://github.com/MultinetInteractive/gp-aws-translate
* Description: Enables suggestions for translations
* Version: 1.1.1
* Author: Chris Gårdenberg, MultiNet Interactive AB
* Author URI: https://github.com/itssimple
* License: MIT
* Text Domain: gp-aws-translate
* Domain Path: /languages/
*/
global $gpAwsRestController;
include_once 'includes/_options.php';
include_once 'gp-extensions/gp_aws_api_controller.php';
include_once 'gp-extensions/gp_aws_frontend.php';
$gpAwsRestController = new GP_AWS_API_Controller();
add_action( 'rest_api_init', function () {
global $gpAwsRestController;
$gpAwsRestController->register_routes();
} );
add_action( 'gp_footer', 'gp_aws_frontend', 10, 1 );