get_main_post_type(). return 'mec-events'; } /** * 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( 'MEC-settings', 'MEC-support', 'MEC-ix', 'MEC-wizard', 'MEC-addons', 'mec-intro' ); } /** * Returns the taxonomy used for the plugin's event categories. * * @return string */ public static function get_event_category_taxonomy(): string { return 'mec_category'; } /** * Returns the ActivityPub transformer for a Modern_Events_Calendar_Lite event post. * * @param WP_Post $post The WordPress post object of the Event. * @return Modern_Events_Calendar_Lite_Transformer */ public static function get_activitypub_event_transformer( $post ): Modern_Events_Calendar_Lite_Transformer { return new Modern_Events_Calendar_Lite_Transformer( $post, self::get_event_category_taxonomy() ); } }