PluginProbe
Custom Template for LearnDash / 1.0.4
Custom Template for LearnDash v1.0.4
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7
custom-template-learndash / custom-template-learndash.php

custom-template-learndash.php in Custom Template for LearnDash 1.0.4, at custom-template-learndash.php

35 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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: Brainstorm Force
7 * Author URI: https://www.brainstormforce.com/
8 * Text Domain: custom-template-learndash
9 * Domain Path: /languages
10 * Version: 1.0.4
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.4' );
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