Snippets

Alexander Khmelnitsky Add KingComposer Pro license

Created by Alexander Khmelnitsky

File kc_pro.php Added

  • Ignore whitespace
  • Hide word diff
+<?php
+/*
+Plugin Name: KC Pro!
+Plugin URI: https://kingcomposer.com
+Description: KC Pro! is professional front-end builder for KingComposer page builder.
+Version: 1.9.4
+Author: King-Theme
+Author URI: http://king-theme.com
+*/
+
+define( 'KCP_VERSION', '1.9.4' );
+
+define( 'KCPS', DIRECTORY_SEPARATOR );
+
+define( 'KCP_OPTNAME', 'kc_pro_options' );
+
+define( 'KCP_PLUGIN', __FILE__ );
+
+define( 'KCP_BASENAME', plugin_basename( KCP_PLUGIN ) );
+
+define( 'KCP_SLUG', basename(dirname(__FILE__)));
+
+define( 'KCP_NAME', trim( dirname( KCP_BASENAME ), '/' ) );
+
+define( 'KCP_DIR', untrailingslashit( dirname( KCP_PLUGIN ) ) );
+
+define( 'KCP_URI', untrailingslashit( plugins_url( '', KCP_PLUGIN ) ) );
+
+define( 'KCP_THEME', get_template_directory().'/kc_pro/' );
+
+define( 'KCP_CTHEME', get_stylesheet_directory().'/kc_pro/' );
+
+define( 'KCP_THEME_URI', get_template_directory_uri().'/kc_pro/' );
+
+define( 'KCP_CTHEME_URI', get_stylesheet_directory_uri().'/kc_pro/' );
+
+define( 'KCP_PPP', get_option( 'posts_per_page' ) );
+
+// Add KingComposer Pro license
+define( 'KC_LICENSE', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' );