Hooks::filter_admin_post_thumbnail_html( string $html )
Filters the admin_post_thumbnail_html to add image aspect ratio recommendation.
Contents
Parameters
- $html
-
(string) (Required) The HTML for the featured image box.
Return
(string) The modified html, if required.
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>';
}
Changelog
| Version | Description |
|---|---|
| 4.9.11 | Introduced. |