Advanced_Display::get_after_events_html( TribeEventsViewsV2TemplateSettingsView_Interface|null $view = null )

Fetches the “HTML after event content” from the calendar settings, which can be found under Events > Settings > Display tab. Applies all the required methods for proper usage and returns it.


Parameters

$view

(TribeEventsViewsV2TemplateSettingsView_Interface|null) (Optional) Instance of the view we are getting this for.

Default value: null


Top ↑

Return

(string) HTML after all the methods have been applied to it.


Top ↑

Source

File: src/Tribe/Views/V2/Template/Settings/Advanced_Display.php

	public function get_after_events_html( $view = null ) {
		$after = stripslashes( tribe_get_option( static::$key_after_events_html, '' ) );
		$after = wptexturize( $after );
		$after = convert_chars( $after );
		$after = wpautop( $after );
		$after = do_shortcode( stripslashes( shortcode_unautop( $after ) ) );

		/**
		 * Filter imported from V1 of Views, kept since there was no requirement to
		 * remove the backwards compatibility here.
		 *
		 * @since  ???  Unsure which verison this was introduced to the codebase.
		 * @since  4.9.11  Moved to the a class method in V2.
		 *
		 * @param  string              $after  HTML after passing all the params.
		 * @param  View_Interface|null $view   Instance of the view we are getting this for.
		 */
		$after = apply_filters( 'tribe_events_after_html', $after, $view );

		/**
		 * Filter imported from V1 of Views, kept since there was no requirement to
		 * remove the backwards compatibility here.
		 *
		 * @since  4.9.11
		 *
		 * @param  string              $after HTML after passing all the params.
		 * @param  View_Interface|null $view  Instance of the view we are getting this for.
		 */
		$after = apply_filters( 'tribe_events_views_v2_view_after_events_html', $after, $view );

		return $after;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.11 Introduced.