2024-11-30 12:26:42 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Event Organiser.
|
|
|
|
*
|
|
|
|
* Defines all the necessary meta information for the Event Organiser plugin.
|
|
|
|
*
|
|
|
|
* @link https://wordpress.org/plugins/event-organiser/
|
2024-12-05 16:16:30 +01:00
|
|
|
* @package Event_Bridge_For_ActivityPub
|
2024-11-30 12:26:42 +01:00
|
|
|
* @since 1.0.0
|
|
|
|
*/
|
|
|
|
|
2024-12-05 16:16:30 +01:00
|
|
|
namespace Event_Bridge_For_ActivityPub\Integrations;
|
2024-11-30 12:26:42 +01:00
|
|
|
|
|
|
|
// Exit if accessed directly.
|
|
|
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for a supported event plugin.
|
|
|
|
*
|
|
|
|
* This interface defines which information is necessary for a supported event plugin.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
|
|
|
*/
|
|
|
|
final class Event_Organiser extends Event_Plugin {
|
|
|
|
/**
|
|
|
|
* Returns the full plugin file.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
2024-12-12 23:24:36 +01:00
|
|
|
public static function get_relative_plugin_file(): string {
|
2024-11-30 12:26:42 +01:00
|
|
|
return 'event-organiser/event-organiser.php';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the event post type of the plugin.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function get_post_type(): string {
|
|
|
|
return 'event';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the IDs of the admin pages of the plugin.
|
|
|
|
*
|
|
|
|
* @return array The settings page urls.
|
|
|
|
*/
|
|
|
|
public static function get_settings_pages(): array {
|
|
|
|
return array( 'event-organiser' );
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the ActivityPub transformer class.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function get_activitypub_transformer_class_name(): string {
|
|
|
|
return 'Event_Organiser';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the taxonomy used for the plugin's event categories.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function get_event_category_taxonomy(): string {
|
|
|
|
return 'event-category';
|
|
|
|
}
|
|
|
|
}
|