| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: پینوا |
| 4 |
* Plugin URI: https://wordpress.org/plugins/pinova |
| 5 |
* Description: ورود و عضویت با تلفن ه� |
| 6 |
راه و کد یکبار � |
| 7 |
صرف، با قابلیت ارسال کد تایید از طریق پیا� |
| 8 |
ک، ای� |
| 9 |
یل، پیا� |
| 10 |
صوتی و پیا� |
| 11 |
رسان بله |
| 12 |
* Version: 1.2.2 |
| 13 |
* Author: ووکا� |
| 14 |
رس فارسی |
| 15 |
* Author URI: https://woosupport.ir |
| 16 |
* |
| 17 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 18 |
* License: GPLv3 |
| 19 |
* |
| 20 |
* Requires at least: 6.8 |
| 21 |
* Requires PHP: 8.1 |
| 22 |
* |
| 23 |
* WC requires at least: 7.6.0 |
| 24 |
* WC tested up to: 10.9.4 |
| 25 |
*/ |
| 26 |
|
| 27 |
defined( 'ABSPATH' ) || exit; |
| 28 |
|
| 29 |
if ( ! defined( 'PINOVA_VERSION' ) ) { |
| 30 |
define( 'PINOVA_VERSION', '1.2.2' ); |
| 31 |
} |
| 32 |
|
| 33 |
if ( ! defined( 'PINOVA_DIR' ) ) { |
| 34 |
define( 'PINOVA_DIR', __DIR__ ); |
| 35 |
} |
| 36 |
|
| 37 |
if ( ! defined( 'PINOVA_FILE' ) ) { |
| 38 |
define( 'PINOVA_FILE', __FILE__ ); |
| 39 |
} |
| 40 |
|
| 41 |
if ( ! defined( 'PINOVA_URL' ) ) { |
| 42 |
define( 'PINOVA_URL', plugin_dir_url( __FILE__ ) ); |
| 43 |
} |
| 44 |
|
| 45 |
require __DIR__ . '/vendor/autoload.php'; |
| 46 |
|
| 47 |
new \Pinova\Install(); |
| 48 |
new \Pinova\Notice(); |
| 49 |
new \Pinova\Version(); |
| 50 |
|
| 51 |
\Pinova\Pinova::instance(); |
| 52 |
|
| 53 |
\Pinova\Integrations\Wordpress\Load::instance(); |
| 54 |
|
| 55 |
\Pinova\Integrations\WPRocket\Load::instance(); |
| 56 |
\Pinova\Integrations\Perfmatters\Load::instance(); |
| 57 |
\Pinova\Integrations\GravityForms\Load::instance(); |
| 58 |
|
| 59 |
add_action( 'plugins_loaded', function () { |
| 60 |
\Pinova\Integrations\PMP\Load::instance(); |
| 61 |
} ); |
| 62 |
|
| 63 |
add_action( 'woocommerce_loaded', function () { |
| 64 |
\Pinova\Integrations\Woocommerce\Load::instance(); |
| 65 |
} ); |
| 66 |
|
| 67 |
add_action( 'woodmart_after_body_open', function () { |
| 68 |
\Pinova\Integrations\Woodmart\Load::instance(); |
| 69 |
} ); |
| 70 |
|
| 71 |
add_action( 'after_setup_theme', function () { |
| 72 |
Pinova\Integrations\Flatsome\Load::instance(); |
| 73 |
} ); |
| 74 |
|
| 75 |
register_activation_hook( PINOVA_FILE, function () { |
| 76 |
file_put_contents( PINOVA_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 |
} ); |