{"id":98079,"date":"2019-02-17T10:57:04","date_gmt":"2019-02-17T10:57:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-camo\/"},"modified":"2019-02-20T13:47:07","modified_gmt":"2019-02-20T13:47:07","slug":"wp-camo","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-camo\/","author":14628770,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.3","stable_tag":"trunk","tested":"5.0.25","requires":"4.6","requires_php":"5.2.4","requires_plugins":"","header_name":"WP Camo","header_author":"Ed-IT Solutions","header_description":"Proxy URLS through your WordPress site to prevent mixed content warnings and bypass local filtering","assets_banners_color":"","last_updated":"2019-02-20 13:47:07","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.ed-itsolutions.com","header_plugin_uri":"","header_author_uri":"https:\/\/www.ed-itsolutions.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":634,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.0":"<p>Improves performance by caching images on the server.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2035096","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2035096","resolution":"256x256","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"logo.png"}},"plugin_section":[],"plugin_tags":[163,7686],"plugin_category":[50],"plugin_contributors":[168036],"plugin_business_model":[],"class_list":["post-98079","plugin","type-plugin","status-closed","hentry","plugin_tags-images","plugin_tags-proxy","plugin_category-media","plugin_contributors-arcath","plugin_committers-arcath"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-camo.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Supplies filters<\/p>\n\n<p>Orignal use case was WordPress themes that used images from facebook which in schools was blocked. By <em>proxying<\/em> the image through wp-camo images from Facebook will now load in school.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/wp-camo<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use the Settings-&gt;WP-Camo screen to configure the plugin<\/li>\n<\/ol>\n\n<p>There are two settings that can be configured<\/p>\n\n<ul>\n<li>Prevent Mixed Content Errors, which applies a filter to <code>the_content<\/code> which finds all <code>http:\/\/<\/code> images and changes them to wp-camo images.<\/li>\n<li>Apply WP-Camo to these domains, which will pass images on these domains through wp-camo regardless of if its hosted on https.<\/li>\n<\/ul>\n\n<p>In your theme\/plugin you can use the filter <code>wp_camo_hash_url<\/code> to get the location of the image through WP-Camo.<\/p>\n\n<pre><code>apply_filters('wp_camo_hash_url', $url);\n<\/code><\/pre>\n\n<p>The image's url will be a location in <code>\/wp-content\/uploads\/wp-camo\/<\/code>. The image will be downloaded and cached on the server to reduce load.<\/p>\n\n<p>There are 2 filters for changing the path wp-camo uploads images to.<\/p>\n\n<ul>\n<li><code>wp_camo_disk_path<\/code> which sets the on disk path of the wp-camo directory.<\/li>\n<li><code>wp_camo_public_path<\/code> which sets the public url of the wp-camo directory.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Images don't appear<\/dt>\n<dd><p>This could be for a few reasons, the most common are:<\/p>\n\n<ul>\n<li>WP-Camo could not write to the disk.<\/li>\n<li>Your web server could not request the image.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Cache the images on the server instead of fetching them anew each request.<\/li>\n<\/ul>","raw_excerpt":"Passes images through the WordPress site to prevent mixed content errors and bypass local filtering.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/98079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=98079"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/arcath"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=98079"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=98079"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=98079"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=98079"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=98079"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=98079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}