STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-stripe/tutor-stripe.php
SHA-256: f4cff4ee050bc76b7939b504da79c7614b30f3b15d7e05f9e80ff586546ecef6
<?php
/**
* Plugin Name: Tutor Stripe
* Plugin URI: https://tutorlms.com
* Description: Stripe payment integration for Tutor LMS
* Author: Themeum
* Author URI: https://tutorlms.com
* Text Domain: tutor-stripe
* Domain Path: /languages
* License: GPLv2 or later
* Version: 1.0.6
*
* @package TutorStripe
*/
// Your code starts here.
require_once __DIR__ . '/vendor/autoload.php';
// Define plugin meta info.
define( 'TUTOR_STRIPE_VERSION', '1.0.6' );
define( 'TUTOR_STRIPE_URL', plugin_dir_url( __FILE__ ) );
define( 'TUTOR_STRIPE_PATH', plugin_dir_path( __FILE__ ) );
define( 'TUTOR_STRIPE_PAYMENTS_DIR', trailingslashit( TUTOR_STRIPE_PATH . 'src/Payments' ) );
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
add_action(
'plugins_loaded',
function () {
if ( is_plugin_active( 'tutor/tutor.php' ) && is_plugin_active( 'tutor-pro/tutor-pro.php' ) ) {
new TutorStripe\Init();
}
},
100
);