'active', ) ); use Activitypub\Activity\Extended_Object\Event; if ( ! isset( $args ) || ! array_key_exists( 'event_terms', $args ) ) { return; } if ( ! current_user_can( 'manage_options' ) ) { return; } \get_option( 'event_bridge_for_activitypub_event_sources_active', false ); if ( ! isset( $args ) || ! array_key_exists( 'supports_event_sources', $args ) ) { return; } $event_plugins_supporting_event_sources = $args['supports_event_sources']; $selected_plugin = \get_option( 'event_bridge_for_activitypub_integration_used_for_event_sources_feature', '' ); $event_sources_active = \get_option( 'event_bridge_for_activitypub_event_sources_active', false ); $cache_retention_period = \get_option( 'event_bridge_for_activitypub_event_source_cache_retention', DAY_IN_SECONDS ); $event_terms = $args['event_terms']; require_once EVENT_BRIDGE_FOR_ACTIVITYPUB_PLUGIN_DIR . '/includes/event-categories.php'; $selected_default_event_category = \get_option( 'event_bridge_for_activitypub_default_event_category', 'MEETING' ); $current_category_mapping = \get_option( 'event_bridge_for_activitypub_event_category_mappings', array() ); ?>