{"id":127385,"date":"2020-08-20T09:48:00","date_gmt":"2020-08-20T09:48:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/website-screenshots\/"},"modified":"2020-08-20T09:54:10","modified_gmt":"2020-08-20T09:54:10","slug":"website-screenshots","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/website-screenshots\/","author":18226752,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"5.5.18","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Website screenshots","header_author":"Dirk Hoekstra","header_description":"A plugin to take website screenshots, powered by screenshotapi.net","assets_banners_color":"","last_updated":"2020-08-20 09:54:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/screenshotapi.net","header_author_uri":"https:\/\/screenshotapi.net\/blog","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1020,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2365607","resolution":"128x128","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2365607","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"2365607","resolution":"2","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[608,2209,4038,3971,14341],"plugin_category":[50,59],"plugin_contributors":[189881],"plugin_business_model":[],"class_list":["post-127385","plugin","type-plugin","status-publish","hentry","plugin_tags-automatic","plugin_tags-generator","plugin_tags-screenshot","plugin_tags-tool","plugin_tags-website-screenshot","plugin_category-media","plugin_category-utilities-and-tools","plugin_contributors-dirk94","plugin_committers-dirk94"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/website-screenshots\/assets\/icon-128x128.png?rev=2365607","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/website-screenshots\/assets\/screenshot-1.png?rev=2365607","caption":""},{"src":"https:\/\/ps.w.org\/website-screenshots\/assets\/screenshot-2.png?rev=2365607","caption":""}],"raw_content":"<!--section=description-->\n<p>Use the <code>[website-screenshot]<\/code> shortcode to automatically insert an up to date webiste screenshot.<\/p>\n\n<h4>Shortcode Examples<\/h4>\n\n<pre><code>\/\/ Website screenshot of wordpress.org\n[website-screenshot url=\"https:\/\/wordpress.org\" width=\"1680\"]\n\n\/\/ You can also resize the generated images\n[website-screenshot url=\"https:\/\/wordpress.org\" width=\"1680\" thumbnail_width=\"100\"]\n\n\/\/ And you can add custom html tags\n[website-screenshot url=\"https:\/\/wordpress.org\" target=\"_blank\" class=\"my-image-class\"]\n<\/code><\/pre>\n\n<h4>Parameters<\/h4>\n\n<ul>\n<li>url (required) - The url<\/li>\n<li>width - the width of the screenhsot<\/li>\n<li>height - the height of the screenshot<\/li>\n<li>thumbnail_width - Resize the image to the desired width, preserves the aspect ratio<\/li>\n<li>alt - the image alt text<\/li>\n<li>target - browser target. For example: use _blank to open in a new window<\/li>\n<li>class - add a class to the screenshot<\/li>\n<\/ul>\n\n<h4>Generating the screenshot in PHP<\/h4>\n\n<p>You can also use our PHP class to generate a screenshot:<\/p>\n\n<pre><code>&lt;img src=\"&lt;?php echo WebsiteScreenshot::screenshot(['url' =&gt; 'https:\/\/wordpress.org']); ?&gt;\" \/&gt;\n<\/code><\/pre>\n\n<h4>Notes<\/h4>\n\n<ul>\n<li>This plugin relies on <a href=\"https:\/\/screenshotapi.net\">screenshotapi.net<\/a> you should create an account there and paste your API token into the settings page.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from the Wordpress admin panel, or upload the <code>website-screenshots<\/code> folder to <code>\/wp-content\/plugins\/<\/code><\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.1 - 20 August 2020<\/h4>\n\n<ul>\n<li>Updated the readme.<\/li>\n<\/ul>\n\n<h4>1.0.0 - 19 August 2020<\/h4>\n\n<ul>\n<li>The initial release.<\/li>\n<\/ul>","raw_excerpt":"Automatically create website screenshots","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/127385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=127385"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dirk94"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=127385"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=127385"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=127385"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=127385"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=127385"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=127385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}