PluginProbe
گیت‌لند | درگاه پرداخت هوشمند گیت‌لند / 2.3.1
گیت‌لند | درگاه پرداخت هوشمند گیت‌لند v2.3.1
trunk 1.9.9 2.1.0 2.1.1 2.3.1
gateland / gateland.php

gateland.php in گیت‌لند | درگاه پرداخت هوشمند گیت‌لند 2.3.1, at gateland.php

83 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: گیت‌لند
4 * Plugin URI: https://wordpress.org/plugins/gateland
5 * Description: درگاه پرداخت جا�
6 ع، ای�
7 ن و هوش�
8 ند وردپرس برای ت�
9 ا�
10 ی درگاه‌های پرداخت با قابلیت اتصال به ه�
11 ه افزونه‌های وردپرس
12 * Version: 2.3.1
13 * Author: نابیک [Nabik.Net]
14 * Author URI: https://Nabik.Net
15 *
16 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
17 * License: GPLv3
18 *
19 * WC requires at least: 7.0.0
20 * WC tested up to: 10.2.2
21 */
22
23 defined( 'ABSPATH' ) || exit;
24
25 if ( ! defined( 'GATELAND_VERSION' ) ) {
26 define( 'GATELAND_VERSION', '2.3.1' );
27 }
28
29 if ( ! defined( 'GATELAND_DIR' ) ) {
30 define( 'GATELAND_DIR', __DIR__ );
31 }
32
33 if ( ! defined( 'GATELAND_FILE' ) ) {
34 define( 'GATELAND_FILE', __FILE__ );
35 }
36
37 if ( ! defined( 'GATELAND_URL' ) ) {
38 define( 'GATELAND_URL', plugin_dir_url( __FILE__ ) );
39 }
40
41 require 'vendor/autoload.php';
42
43 new \Nabik\Gateland\Install();
44 new \Nabik\Gateland\Notice();
45 new \Nabik\Gateland\Version();
46
47 add_action( 'plugins_loaded', function () {
48 \Nabik\Gateland\Gateland::instance();
49
50 Nabik\Gateland\Plugins\CF7\Load::instance();
51 Nabik\Gateland\Plugins\EDD\Load::instance();
52 Nabik\Gateland\Plugins\GF\Load::instance();
53 Nabik\Gateland\Plugins\LearnDash\Load::instance();
54 Nabik\Gateland\Plugins\LifterLMS\Load::instance();
55 Nabik\Gateland\Plugins\MyCred\Load::instance();
56 Nabik\Gateland\Plugins\PMP\Load::instance();
57 Nabik\Gateland\Plugins\RCP\Load::instance();
58 Nabik\Gateland\Plugins\TeraWallet\Load::instance();
59 // Nabik\Gateland\Plugins\WPForms\Load::instance();
60 Nabik\Gateland\Plugins\WPUF\Load::instance();
61 } );
62
63 add_action( 'plugins_loaded', function () {
64 // Nabik\Gateland\Plugins\Give\Load::instance();
65 }, 0 );
66
67 add_action( 'learn-press/ready', function () {
68 Nabik\Gateland\Plugins\LearnPress\Load::instance();
69 } );
70
71 add_action( 'woocommerce_loaded', function () {
72 \Nabik\Gateland\Plugins\Woocommerce\Load::instance();
73 } );
74
75 register_activation_hook( GATELAND_FILE, function () {
76 file_put_contents( GATELAND_DIR . '/.activated', '' );
77 } );
78
79 add_action( 'before_woocommerce_init', function () {
80 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
81 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__ );
82 }
83 } );