Articles on: Developers

Change YouTube placeholder resolution

When you've enabled "Use placeholder images for YouTube videos", the placeholder defaults to the resolution "hqdefault".

You can change that using the filter flying_press_youtube_placeholder_resolution :

add_filter('flying_press_youtube_placeholder_resolution', function () {
  // Available resolutions: default, mqdefault, hqdefault, sddefault, maxresdefault
  return 'maxresdefault';

Updated on: 23/11/2023

Was this article helpful?

Share your feedback


Thank you!