43 lines
1.4 KiB
PHP
43 lines
1.4 KiB
PHP
<?php
|
||
/**
|
||
* Plugin Name: Minecraft Server News
|
||
* Plugin URI: https://git.viper.ipv64.net/M_Viper/Minecraft-Server-News
|
||
* Description: News-System für deinen Minecraft Server – mit Kategorien, Shortcode und modernem Design.
|
||
* Version: 1.0.0
|
||
* Author: M_Viper
|
||
* Author URI: https://m-viper.de
|
||
* Tested up to: 6.8
|
||
* PHP Version: 7.4
|
||
* License: GPL2
|
||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||
* Text Domain: mc-server-news
|
||
* Tags: minecraft, server, news, shortcode, categories, modern design
|
||
* Support: [Discord Support](https://discord.com/invite/FdRs4BRd8D)
|
||
* Support: [Telegram Support](https://t.me/M_Viper04)
|
||
*/
|
||
|
||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||
|
||
define( 'MCN_VERSION', '1.0.0' );
|
||
define( 'MCN_PATH', plugin_dir_path( __FILE__ ) );
|
||
define( 'MCN_URL', plugin_dir_url( __FILE__ ) );
|
||
|
||
require_once MCN_PATH . 'includes/post-type.php';
|
||
require_once MCN_PATH . 'includes/taxonomy.php';
|
||
require_once MCN_PATH . 'includes/metaboxes.php';
|
||
require_once MCN_PATH . 'includes/shortcode.php';
|
||
require_once MCN_PATH . 'includes/widget.php';
|
||
require_once MCN_PATH . 'includes/assets.php';
|
||
require_once MCN_PATH . 'includes/admin-columns.php';
|
||
|
||
register_activation_hook( __FILE__, 'mcn_activate' );
|
||
function mcn_activate() {
|
||
mcn_register_post_type();
|
||
mcn_register_taxonomy();
|
||
flush_rewrite_rules();
|
||
}
|
||
|
||
register_deactivation_hook( __FILE__, function() {
|
||
flush_rewrite_rules();
|
||
} );
|