{"id":95869,"date":"2018-12-20T14:36:53","date_gmt":"2018-12-20T14:36:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-enable-webp\/"},"modified":"2019-09-16T13:24:37","modified_gmt":"2019-09-16T13:24:37","slug":"wp-enable-webp","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-enable-webp\/","author":15142366,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"5.2.24","requires":"4.3","requires_php":"","requires_plugins":"","header_name":"WP Enable WebP","header_author":"Louis Fico","header_description":"WordPress plugin to enable WebP image uploads.","assets_banners_color":"","last_updated":"2019-09-16 13:24:37","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/eastsidecode.com","header_author_uri":"http:\/\/eastsidecode.com","rating":4.9,"author_block_rating":0,"active_installs":5000,"downloads":145872,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":1,"5":6},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[71721,15376],"plugin_category":[],"plugin_contributors":[125185],"plugin_business_model":[],"class_list":["post-95869","plugin","type-plugin","status-closed","hentry","plugin_tags-image-format","plugin_tags-webp","plugin_contributors-louis","plugin_committers-eastsidecode"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-enable-webp.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This WordPress Plugin for WebP image uploads enabled WebP image uploads into the media library.<\/p>\n\n<p>It will also add a class to the body tag for CSS selectors. This is helpful for setting background images.<\/p>\n\n<p>Example:<\/p>\n\nselector {\n\n<p>background: url('images\/example.jpg');\n}<\/p>\n\n<p>body.supports-webp #selector {\n  background: url('images\/example.webp');\n}<\/p>\n\n<p>Use the function webpSupported() in template files to conditionally show WebP images.<\/p>\n\n<p>Example:\nif (webpSupported()) :\n    WebP image here\n else:\n    Image with other fallback format here\n endif;<\/p>\n\n<p>Major features in WP Enable WebP include:<\/p>\n\n<ul>\n<li>Enabling WebP Image uploads into the media library. <\/li>\n<li>Browser detection that adds a class to the body tag indicating WebP is supported by the browser.<\/li>\n<li>Helper function to use in theme template files to check if the browser supports WebP image format.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Upload the \"wp-enable-webp\" folder to your wp-content\/plugins directory, then Activate it.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p><em>Release Date - 19 December 2018<\/em>\n* Initial release<\/p>","raw_excerpt":"License: GPLv2 or later WordPress plugin to enable WebP image uploads.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/95869","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=95869"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eastsidecode"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=95869"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=95869"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=95869"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=95869"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=95869"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=95869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}