plugin-icon

Website Screenshots

מאת dirk94·
Automatically create website screenshots
גרסה
1.0
התקנות פעילות
10
עודכן לאחרונה
Aug 20, 2020

Use the [website-screenshot] shortcode to automatically insert an up to date webiste screenshot.

Shortcode Examples

// Website screenshot of wordpress.org [website-screenshot url="https://wordpress.org" width="1680"] // You can also resize the generated images [website-screenshot url="https://wordpress.org" width="1680" thumbnail_width="100"] // And you can add custom html tags [website-screenshot url="https://wordpress.org" target="_blank" class="my-image-class"]

Parameters

  • url (required) – The url
  • width – the width of the screenhsot
  • height – the height of the screenshot
  • thumbnail_width – Resize the image to the desired width, preserves the aspect ratio
  • alt – the image alt text
  • target – browser target. For example: use _blank to open in a new window
  • class – add a class to the screenshot

Generating the screenshot in PHP

You can also use our PHP class to generate a screenshot:

<img src="<?php echo WebsiteScreenshot::screenshot(['url' => 'https://wordpress.org']); ?>" />

Notes

  • This plugin relies on screenshotapi.net you should create an account there and paste your API token into the settings page.
חינםבתוכנית Business
בביצוע ההתקנה, אנחנו מקבלים את הסכמתך לתנאי השירות של WordPress.com ולתנאים של התוסף של הצד השלישי.
נבדקו עד
WordPress 5.5.17
תוסף זה זמין להורדה ולשימוש דרך שברשותך.