wordpress-activitypub-event.../activitypub-event-transformers.php
Author: ruru4143 da059c0d70
Some checks failed
Deploy to https://wordpress-test.event-federation.eu/ / deploy (push) Failing after 7s
started tribe plugin, working on smoother build process
2023-12-09 02:02:35 +01:00

39 lines
1.2 KiB
PHP

<?php
/**
* Plugin Name: ActivityPub Transformers for Events
* Description: Custom ActivityPub Transformers for Events
* Plugin URI: https://event-federation.eu/
* Version: 1.0.0
* Author: André Menrath
* Author URI: https://graz.social/@linos
* Text Domain: activitypub-event-transformers
* License: AGPL-3.0-or-later
*
* ActivityPub tested up to: 1.2.0
*
* @package activitypub-event-transformer
* @license AGPL-3.0-or-later
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Register Event Transformers.
*
* Include fransformer class file and register the transformer class.
*
* @since 1.0.0
* @param \Activitypub\Transformer\Transformer_Factory $transformers_manager ActivtiyPub transformers manager.
* @return void
*/
function register_event_transformers( $transformers_manager ) {
require_once __DIR__ . '/activitypub/transformer/class-tribe.php';
$transformers_manager->register( new \Tribe() );
require_once __DIR__ . '/activitypub/transformer/class-vs-event.php';
$transformers_manager->register( new \VS_Event() );
}
add_action( 'activitypub_transformers_register', 'register_event_transformers' );