2023-11-19 19:56:03 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Plugin Name: ActivityPub Transformer for The Events Calendar
|
|
|
|
* Description: ActivityPub Transformer for The Events Calendar.
|
|
|
|
* Plugin URI: https://event-federation.eu/
|
|
|
|
* Version: 1.0.0
|
|
|
|
* Author: André Menrath
|
|
|
|
* Author URI: https://graz.social/@linos
|
|
|
|
* Text Domain: activitypub-tribe
|
|
|
|
*
|
|
|
|
* ActivityPub tested up to: 1.2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit; // Exit if accessed directly.
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register Tribe Transformer.
|
|
|
|
*
|
|
|
|
* Include fransformer file and register transformer class.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
2023-11-22 14:59:51 +01:00
|
|
|
* @param \Activitypub\Transformer\Transformers_Manager $transformers_manager ActivtiyPub transformers manager.
|
2023-11-19 19:56:03 +01:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
function register_tribe_transformer( $transformers_manager ) {
|
2023-11-22 14:59:51 +01:00
|
|
|
require_once( __DIR__ . '/activitypub/transformer/tribe.php' );
|
|
|
|
$transformers_manager->register( new \Tribe() );
|
2023-11-19 19:56:03 +01:00
|
|
|
}
|
2023-11-22 14:59:51 +01:00
|
|
|
|
|
|
|
add_action( 'activitypub_transformers_register', 'register_tribe_transformer' );
|