2018-08-21 13:17:07 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2018-09-19 15:16:41 +00:00
|
|
|
Plugin Name: Pterotype
|
2018-10-18 14:20:18 +00:00
|
|
|
Plugin URI: https://getpterotype.com
|
|
|
|
Description: Pterotype expands your audience by giving your blog an ActivityPub stream, making it a part of the Fediverse.
|
2018-10-23 01:44:33 +00:00
|
|
|
Version: 1.0.2
|
2018-10-18 14:20:18 +00:00
|
|
|
Author: Jeremy Dormitzer
|
|
|
|
Author URI: https://jeremydormitzer.com
|
|
|
|
License: MIT
|
|
|
|
License URI: https://github.com/jdormit/blob/master/LICENSE
|
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-10-23 01:44:33 +00:00
|
|
|
define( 'PTEROTYPE_VERSION', '1.0.2' );
|
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-09 12:50:21 +00:00
|
|
|
function pterotype_deactivate() {
|
2018-10-02 17:27:29 +00:00
|
|
|
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
|
|
|
?>
|