8889841cEvent_Tag.php000064400000002452150514212350007132 0ustar00 $actions An array of action links to be displayed. * @param WP_Term $tag Term object. * * @return array An array of action links to be displayed */ public function event_tag_actions( $actions, WP_Term $tag ) { if ( 'post_tag' !== $tag->taxonomy ) { return $actions; } $link = tribe_events_get_url( [ 'tag' => $tag->slug, 'post_type' => 'tribe_events', 'eventDisplay' => 'default' ] ); if ( is_wp_error( $link ) ) { return $actions; } $events_label_singular = tribe_get_event_label_singular(); // Translators: %s: Event singular. $event_view = sprintf( _x( '%s View', 'The text used for the link to the event archive in the admin post tag list.', 'the-events-calendar' ), $events_label_singular ); $actions['event-view'] = ''; return $actions; } } Taxonomy_Provider.php000064400000002333150514212350010744 0ustar00container->singleton( 'events.taxonomy.provider', $this ); $this->add_filters(); } /** * Adds the filters required for taxonomies. * * @since 5.16.0 */ protected function add_filters() { add_filter( 'post_tag_row_actions', [ $this, 'event_tag_actions' ], 10, 2 ); } /** * Filters the post tag action links displayed for each term in the terms list table. * * @since 5.16.0 * * @param array $actions An array of action links to be displayed. * @param WP_Term $tag Term object. * * @return array An array of action links to be displayed */ public function event_tag_actions( $actions, WP_Term $tag ) { return $this->container->make( Event_Tag::class )->event_tag_actions( $actions, $tag ); } }