{"id":35018,"date":"2015-03-11T12:28:02","date_gmt":"2015-03-11T12:28:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/add-external-media\/"},"modified":"2019-11-13T07:41:06","modified_gmt":"2019-11-13T07:41:06","slug":"add-external-media","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/add-external-media\/","author":147990,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"1.0.5","tested":"5.3.21","requires":"4.0","requires_php":"5.3","requires_plugins":"","header_name":"Add External Media","header_author":"leemon","header_description":"","assets_banners_color":"ff8a00","last_updated":"2019-11-13 07:41:06","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=oscarciutat%40gmail%2ecom","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/add-external-media\/","header_author_uri":"","rating":4.7,"author_block_rating":0,"active_installs":100,"downloads":17621,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1483467","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1483467","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1483467","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1483467","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1110311","resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Enter the url and size of the external media you'd like to add to the media library here"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,1346,1920,84,2874],"plugin_category":[50,56],"plugin_contributors":[83403],"plugin_business_model":[],"class_list":["post-35018","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-attachments","plugin_tags-external","plugin_tags-media","plugin_tags-oembed","plugin_category-media","plugin_category-social-and-sharing","plugin_contributors-leemon","plugin_committers-leemon"],"banners":{"banner":"https:\/\/ps.w.org\/add-external-media\/assets\/banner-772x250.png?rev=1483467","banner_2x":"https:\/\/ps.w.org\/add-external-media\/assets\/banner-1544x500.png?rev=1483467","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/add-external-media\/assets\/icon-128x128.png?rev=1483467","icon_2x":"https:\/\/ps.w.org\/add-external-media\/assets\/icon-256x256.png?rev=1483467","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/add-external-media\/assets\/screenshot-1.png?rev=1110311","caption":"Enter the url and size of the external media you'd like to add to the media library here"}],"raw_content":"<!--section=description-->\n<p>Add external media from a <a href=\"http:\/\/codex.wordpress.org\/Embeds\">supported oEmbed provider<\/a> (YouTube, Vimeo, SoundCloud, Twitter, ...) to the media library<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the extracted plugin folder and contained files to your \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Does this plugin import the actual external media content into the library?<\/dt>\n<dd><p>No, external media attachments just contain URL references to the original resources<\/p><\/dd>\n<dt>How can I show an external media attachment with the specified width and height?<\/dt>\n<dd><p>$oembed = new WP_oEmbed();\n    $oembed_width = get_post_meta( $attachment-&gt;ID, '_oembed_width', true );\n    $oembed_height = get_post_meta( $attachment-&gt;ID, '_oembed_height', true );\n    echo $oembed-&gt;get_html( wp_get_attachment_url( $attachment-&gt;ID ), array( 'width' =&gt; $oembed_width, 'height' =&gt; $oembed_height ) );<\/p><\/dd>\n<dt>Why are the width and height settings in some external media attachments being ignored?<\/dt>\n<dd><p>Some service providers, such as Twitter and Instagram, have a maximum and minimum allowed width and ignore the height setting completely<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Add WP 5.3 support<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Code refactoring<\/li>\n<li>Hooking the plugin's enqueue function into \"wp_enqueue_media\" instead of \"admin_enqueue_scripts\"<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Use language packs exclusively<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Language filenames updated<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Text domain changed to match the plugin's slug<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Add external media to the media library","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35018"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/leemon"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35018"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35018"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35018"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35018"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35018"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}