| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Powerkit |
| 4 |
* Description: Powerkit – essential components for every WordPress site. |
| 5 |
* Version: 2.5.1 |
| 6 |
* Author: Code Supply Co. |
| 7 |
* Author URI: https://codesupply.co |
| 8 |
* License: GPL-2.0+ |
| 9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 10 |
* Text Domain: powerkit |
| 11 |
* Domain Path: /languages |
| 12 |
* |
| 13 |
* @link https://codesupply.co |
| 14 |
* @package Powerkit |
| 15 |
*/ |
| 16 |
|
| 17 |
defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); |
| 18 |
|
| 19 |
/** |
| 20 |
* Variables |
| 21 |
*/ |
| 22 |
define( 'POWERKIT_URL', plugin_dir_url( __FILE__ ) ); |
| 23 |
define( 'POWERKIT_PATH', plugin_dir_path( __FILE__ ) ); |
| 24 |
|
| 25 |
/** |
| 26 |
* Plugin Activation. |
| 27 |
* |
| 28 |
* @param bool $networkwide The networkwide. |
| 29 |
*/ |
| 30 |
function powerkit_plugin_activation( $networkwide ) { |
| 31 |
do_action( 'powerkit_plugin_activation', $networkwide ); |
| 32 |
} |
| 33 |
register_activation_hook( __FILE__, 'powerkit_plugin_activation' ); |
| 34 |
|
| 35 |
/** |
| 36 |
* Plugin Deactivation. |
| 37 |
* |
| 38 |
* @param bool $networkwide The networkwide. |
| 39 |
*/ |
| 40 |
function powerkit_plugin_deactivation( $networkwide ) { |
| 41 |
do_action( 'powerkit_plugin_deactivation', $networkwide ); |
| 42 |
} |
| 43 |
register_deactivation_hook( __FILE__, 'powerkit_plugin_deactivation' ); |
| 44 |
|
| 45 |
/** |
| 46 |
* Language |
| 47 |
*/ |
| 48 |
load_plugin_textdomain( 'powerkit', false, plugin_basename( POWERKIT_PATH ) . '/languages' ); |
| 49 |
|
| 50 |
/** |
| 51 |
* The core plugin class that is used to define internationalization, |
| 52 |
* admin-specific hooks, and public-facing site hooks. |
| 53 |
*/ |
| 54 |
require_once plugin_dir_path( __FILE__ ) . '/core/class-powerkit.php'; |
| 55 |
|