2018-08-21 13:17:07 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2018-09-19 15:16:41 +00:00
|
|
|
Plugin Name: Pterotype
|
2018-08-21 13:17:07 +00:00
|
|
|
*/
|
2018-10-03 12:54:02 +00:00
|
|
|
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
|
2018-09-27 04:10:33 +00:00
|
|
|
require_once plugin_dir_path( __FILE__ ) . 'includes/init.php';
|
2018-08-21 13:17:07 +00:00
|
|
|
|
2018-09-24 12:39:54 +00:00
|
|
|
define( 'PTEROTYPE_VERSION', '0.0.4' );
|
2018-10-03 12:23:41 +00:00
|
|
|
define( 'PTEROTYPE_BLOG_ACTOR_SLUG', '-blog' );
|
|
|
|
define( 'PTEROTYPE_BLOG_ACTOR_USERNAME', 'blog' );
|
2018-09-19 15:47:51 +00:00
|
|
|
|
2018-09-19 15:16:41 +00:00
|
|
|
function pterotype_init() {
|
|
|
|
do_action( 'pterotype_init' );
|
2018-10-02 17:27:29 +00:00
|
|
|
flush_rewrite_rules();
|
2018-08-23 02:07:06 +00:00
|
|
|
}
|
|
|
|
|
2018-10-02 17:27:29 +00:00
|
|
|
function pterotype_deactive() {
|
|
|
|
do_action( 'pterotype_deactivate' );
|
|
|
|
flush_rewrite_rules();
|
|
|
|
}
|
|
|
|
|
|
|
|
function pterotype_load() {
|
|
|
|
do_action( 'pterotype_load' );
|
|
|
|
}
|
2018-09-19 21:44:21 +00:00
|
|
|
|
2018-10-02 17:27:29 +00:00
|
|
|
add_action( 'plugins_loaded', 'pterotype_load' );
|
|
|
|
register_activation_hook( __FILE__, 'pterotype_init' );
|
|
|
|
register_deactivation_hook( __FILE__, 'pterotype_deactivate' );
|
2018-08-21 13:17:07 +00:00
|
|
|
?>
|