Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Pco Media Handler

Improve the markup of featured images, inline images and embeds, and make them all responsive to all screen sizes.

Are there any options?

Yes, but a settings screen hasn't been made yet. Until then you can override the default behaviour by adding a global array in your wp-config file. Here are the options with their default values...

/** Options for Pco Media Mandler */
global $pco_ih_options;
$pco_ih_options = array(
    'pco_ih_keep_p_wrap' => false,
    'pco_ih_allow_avatar_dimensions' => false,
    'pco_ih_allow_inline_image_dimensions' => false,
    'pco_ih_allow_thumbnail_dimensions' => false,
    'pco_ih_captioned_images_no_html5' => false,
    'pco_ih_leave_oembeds_alone' => false,
    'pco_ih_hide_oembed_styles_in_head' => false,
    'pco_ih_link_images_to_file' => false

This options allow you to opt out of certain features. By setting a feature exception to true, you revert that feature to the standard functionality.


Yep. The default values for these filters can be found in public/class-pco-media-handler

  1. pco_media_handler_embed_css - change the css that gets added to the head to deal with responsive embeds.
  2. pco_media_handler_oembed_providers - change the accepted oembed providers that should get the responsive treatment.
  3. pco_media_handler_youtube_params - change the params for all YouTube embeds.

Does this plugin add css files or scripts?

No, it does not add any HTTP requests. It does, however, add one line of css to the head tag of the site to make oembeds play nicely responsivly. You can turn this off by copying the rules ot your stylesheet and setting the option called pco_ih_hide_oembed_styles_in_head to true.

Does this plugin work on older versions of WordPress?

It probably works back to at least 3.5, but we have not tested it.

Requires: 3.8 or higher
Compatible up to: 3.9.16
Last Updated: 3 years ago
Active Installs: 40+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.