| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Custom Template for LearnDash |
| 4 |
* Plugin URI: https://github.com/brainstormforce/custom-template-learndash |
| 5 |
* Description: This plugin will help you replace default LearnDash course template for non-enrolled students with a custom template. You can design the custom template with any page builder of your choice. |
| 6 |
* Author: Pratik Chaskar |
| 7 |
* Author URI: https://pratikchaskar.com/ |
| 8 |
* Text Domain: custom-template-learndash |
| 9 |
* Domain Path: /languages |
| 10 |
* Version: 1.0.6 |
| 11 |
* |
| 12 |
* @package Custom Template for LearnDash |
| 13 |
*/ |
| 14 |
|
| 15 |
// Set Option to flush the rewrite rule after activation of plugin. |
| 16 |
register_activation_hook( __FILE__, 'ctlearndash_activation' ); |
| 17 |
|
| 18 |
/** |
| 19 |
* Set option that states plugin is activated. |
| 20 |
* |
| 21 |
* @since 1.0.2 |
| 22 |
* @return void |
| 23 |
*/ |
| 24 |
function ctlearndash_activation() { |
| 25 |
add_option( 'ctlearndash_activation', 'is-activated' ); |
| 26 |
} |
| 27 |
|
| 28 |
define( 'CTLEARNDASH_VER', '1.0.6' ); |
| 29 |
define( 'CTLEARNDASH_FILE', __FILE__ ); |
| 30 |
define( 'CTLEARNDASH_DIR', plugin_dir_path( __FILE__ ) ); |
| 31 |
define( 'CTLEARNDASH_URL', plugins_url( '/', __FILE__ ) ); |
| 32 |
define( 'CTLEARNDASH_PATH', plugin_basename( __FILE__ ) ); |
| 33 |
|
| 34 |
require_once CTLEARNDASH_DIR . 'classes/class-ctlearndash-loader.php'; |
| 35 |
|