Hooks::filter_admin_post_thumbnail_html( string $html )

Filters the admin_post_thumbnail_html to add image aspect ratio recommendation.


Parameters

$html

(string) (Required) The HTML for the featured image box.


Top ↑

Return

(string) The modified html, if required.


Top ↑

Source

File: src/Tribe/Views/V2/Hooks.php

	public function filter_admin_post_thumbnail_html( $html ) {

		if ( TEC::POSTTYPE !== get_current_screen()->post_type ) {
			return $html;
		}

		return $html . '<p class="hide-if-no-js howto">' . __( 'We recommend a 16:9 aspect ratio for featured images.', 'the-events-calendar' ) . '</p>';
	}

Top ↑

Changelog

Changelog
Version Description
4.9.11 Introduced.