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

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

96 lines 2.6 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: 1.9.9
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: 9.8.1
21 */
22
23 defined( 'ABSPATH' ) || exit;
24
25 if ( ! defined( 'GATELAND_VERSION' ) ) {
26 define( 'GATELAND_VERSION', '1.9.9' );
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 if ( ! function_exists( 'sg_load' ) ) {
42
43 add_action( 'admin_notices', function () {
44 ?>
45 <div class="notice notice-error">
46 <p><b>هشدار: </b>
47 فعالسازی «افزونه گیت‌لند» انجا�
48 نشد. لودر سورس گاردین روی هاست ش�
49 ا فعال نیست، لطفا
50 به هاستینگ خود تیکت بزنید و درخواست کنید لودر سورس گاردین را برای ش�
51 ا نصب و فعالسازی
52 ن�
53 ایند.
54 </p>
55 </div>
56 <?php
57 } );
58
59 return;
60 }
61
62 require 'vendor/autoload.php';
63
64 new \Nabik\Gateland\Install();
65 new \Nabik\Gateland\Notice();
66 new \Nabik\Gateland\Version();
67
68 add_action( 'plugins_loaded', function () {
69 \Nabik\Gateland\Gateland::instance();
70
71 Nabik\Gateland\Plugins\CF7\Load::instance();
72 Nabik\Gateland\Plugins\EDD\Load::instance();
73 Nabik\Gateland\Plugins\LearnDash\Load::instance();
74 Nabik\Gateland\Plugins\MyCred\Load::instance();
75 Nabik\Gateland\Plugins\PMP\Load::instance();
76 Nabik\Gateland\Plugins\RCP\Load::instance();
77 Nabik\Gateland\Plugins\WPUF\Load::instance();
78 } );
79
80 add_action( 'learn-press/ready', function () {
81 Nabik\Gateland\Plugins\LearnPress\Load::instance();
82 } );
83
84 add_action( 'woocommerce_loaded', function () {
85 \Nabik\Gateland\Plugins\Woocommerce\Load::instance();
86 } );
87
88 register_activation_hook( GATELAND_FILE, function () {
89 file_put_contents( GATELAND_DIR . '/.activated', '' );
90 } );
91
92 add_action( 'before_woocommerce_init', function () {
93 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
94 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__ );
95 }
96 } );