-
Notifications
You must be signed in to change notification settings - Fork 1
/
wp-nowpayments-integration.php
50 lines (43 loc) · 1.78 KB
/
wp-nowpayments-integration.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
49
50
<?php declare( strict_types=1 );
/**
* WordPress nowpayments.io integration
*
* @copyright Copyright (C) 2022, Dennis Ploetner, [email protected]
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 or later
* @wordpress-plugin
*
* Plugin Name: WordPress nowpayments.io integration
* Version: 1.0.0
* Plugin URI: https://github.com/lloc/wp-nowpayments-itegration
* Description: Cryptocurrency Payment integration using the NOWPayments API
* Author: Dennis Ploetner
* Author URI: https://ploetner.io/
* Text Domain: wp-nowpayments-integration
* Domain Path: /languages/
* License: GPLv2 or later
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* 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 St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require __DIR__ . '/vendor/autoload.php';
defined( 'NOWPAYMENTS_PLUGIN_VERSION' ) or define( 'NOWPAYMENTS_PLUGIN_VERSION', '1.0.0' );
add_action( 'plugins_loaded', function () {
lloc\Nowpayments\Plugin::init( __FILE__ );
$logger = \lloc\Nowpayments\Logs\LogFactory::get_logger();
lloc\Nowpayments\Logs\ApplicationLogs::init( $logger );
} );
add_filter( 'use_block_editor_for_post', '__return_true', 99 );
add_filter( 'use_block_editor_for_post_type', '__return_true', 99 );