Provider::add_related_events_series_icon( string $html, int $post_id )

Appends the Series icon to the input HTML code, if required.


Parameters

$html

(string) (Required) The HTML code to append the marker to.

$post_id

(int) (Required) The post ID of the Event to print the marker for, if required.


Top ↑

Return

(string) The HTML with the marker HTML appended to it, if required.


Top ↑

Source

File: src/Events_Pro/Custom_Tables/V1/Templates/Provider.php

	public function add_related_events_series_icon( $html, $post_id ) {
		if ( ! is_singular( TEC::POSTTYPE ) ) {
			return $html;
		}

		// Only show marker on related events.
		if ( get_the_ID() === $post_id ) {
			return $html;
		}

		$series_icon = $this->container->make( Single_Event_Modifications::class )
		                               ->get_series_relationship_icon( $post_id );

		return $html . $series_icon;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.