| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Twentig |
| 4 |
* Plugin URI: https://wordpress.org/plugins/twentig |
| 5 |
* Description: Advanced customization for the Twenty Twenty theme. |
| 6 |
* Author: Twentig |
| 7 |
* Version: 0.2 |
| 8 |
* License: GPLv3 or later |
| 9 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 10 |
* |
| 11 |
* @package twentig |
| 12 |
*/ |
| 13 |
|
| 14 |
// Exit if accessed directly. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Setup plugin constants. |
| 21 |
*/ |
| 22 |
define( 'TWENTIG_VERSION', '0.2' ); |
| 23 |
define( 'TWENTIG_PATH', trailingslashit( plugin_dir_path(__FILE__) ) ); |
| 24 |
define( 'TWENTIG_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) ); |
| 25 |
define( 'TWENTIG_ASSETS_URI', TWENTIG_URI . 'dist' ); |
| 26 |
define( 'TWENTIG_PLUGIN_BASE', plugin_basename( __FILE__ ) ); |
| 27 |
|
| 28 |
/** |
| 29 |
* Load the Twentig plugin. |
| 30 |
*/ |
| 31 |
require_once TWENTIG_PATH . 'inc/init.php'; |
| 32 |
|