-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgp-translation-helpers.php
48 lines (44 loc) · 2.54 KB
/
gp-translation-helpers.php
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @package gp-translation-helpers
*/
/**
* Plugin name: GP Translation Helpers
* Plugin URI: https://github.com/GlotPress/gp-translation-helpers
* Description: GlotPress plugin to discuss the strings that are being translated in GlotPress.
* Version: 0.0.3
* Requires PHP: 7.4
* Author: the GlotPress team
* Author URI: https://glotpress.blog
* License: GPLv2 or later
* Text Domain: gp-translation-helpers
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
require_once __DIR__ . '/includes/class-gp-route-translation-helpers.php';
require_once __DIR__ . '/includes/class-gp-sidebar.php';
require_once __DIR__ . '/includes/class-gp-translation-helpers.php';
require_once __DIR__ . '/includes/class-gth-temporary-post.php';
require_once __DIR__ . '/includes/class-gp-notifications.php';
require_once __DIR__ . '/includes/class-wporg-notifications.php';
require_once __DIR__ . '/includes/class-wporg-customizations.php';
require_once __DIR__ . '/includes/class-gp-custom-locale-reasons.php';
require_once __DIR__ . '/includes/class-gp-openai-review.php';
add_action( 'gp_init', array( 'GP_Translation_Helpers', 'init' ) ); // todo: remove this when this plugin will be merged in the GlotPress core.
add_action( 'gp_init', array( 'GP_Sidebar', 'init' ) ); // todo: remove this when this plugin will be merged in the GlotPress core.
add_action( 'gp_init', array( 'WPorg_GlotPress_Notifications', 'init' ) ); // todo: include this class in a different plugin.
add_filter( 'gp_enable_changesrequested_status', '__return_true' ); // todo: remove this filter when this plugin will be merged in the GlotPress core.
add_action( 'gp_init', array( 'WPorg_GlotPress_Customizations', 'init' ) ); // todo: include this class in a different plugin.
add_action( 'wp_ajax_fetch_openai_review', array( 'GP_Translation_Helpers', 'fetch_openai_review' ) );