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-11-10 03:49:09 +00:00
|
|
|
Version: 1.2.8
|
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-11-10 03:49:09 +00:00
|
|
|
define( 'PTEROTYPE_VERSION', '1.2.8' );
|
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();
|
|
|
|
}
|
|
|
|
|
2018-11-03 18:30:16 +00:00
|
|
|
function pterotype_uninstall() {
|
|
|
|
do_action( 'pterotype_uninstall' );
|
|
|
|
flush_rewrite_rules();
|
|
|
|
}
|
|
|
|
|
2018-10-02 17:27:29 +00:00
|
|
|
function pterotype_load() {
|
|
|
|
do_action( 'pterotype_load' );
|
|
|
|
}
|
2018-09-19 21:44:21 +00:00
|
|
|
|
2018-11-01 11:49:16 +00:00
|
|
|
add_action( 'setup_theme', 'pterotype_load' );
|
2018-10-02 17:27:29 +00:00
|
|
|
register_activation_hook( __FILE__, 'pterotype_init' );
|
|
|
|
register_deactivation_hook( __FILE__, 'pterotype_deactivate' );
|
2018-11-03 18:30:16 +00:00
|
|
|
register_uninstall_hook( __FILE__, 'pterotype_uninstall' );
|
2018-08-21 13:17:07 +00:00
|
|
|
?>
|