Title: Website Screenshots
Author: dirk94
Published: <strong>2020 年 8 月 20 日</strong>
Last modified: 2020 年 8 月 20 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/website-screenshots/assets/icon-128x128.png?rev=2365607)

# Website Screenshots

 作者：[dirk94](https://profiles.wordpress.org/dirk94/)

[下载](https://downloads.wordpress.org/plugin/website-screenshots.zip)

 * [详情](https://cn.wordpress.org/plugins/website-screenshots/#description)
 * [评价](https://cn.wordpress.org/plugins/website-screenshots/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/website-screenshots/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/website-screenshots/#developers)

 [支持](https://wordpress.org/support/plugin/website-screenshots/)

## 描述

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](https://screenshotapi.net) you should
   create an account there and paste your API token into the settings page.

## 屏幕截图

 * [[
 * [[

## 安装

 1. Install the plugin from the WordPress admin panel, or upload the `website-screenshots`
    folder to `/wp-content/plugins/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

「Website Screenshots」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ dirk94 ](https://profiles.wordpress.org/dirk94/)

[帮助将「Website Screenshots」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/website-screenshots)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/website-screenshots/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/website-screenshots/)，或通过[RSS](https://plugins.trac.wordpress.org/log/website-screenshots/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/website-screenshots/)。

## 更新日志

#### 1.0.1 – 20 August 2020

 * Updated the readme.

#### 1.0.0 – 19 August 2020

 * The initial release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/website-screenshots/)
 * 标签
 * [automatic](https://cn.wordpress.org/plugins/tags/automatic/)[generator](https://cn.wordpress.org/plugins/tags/generator/)
   [screenshot](https://cn.wordpress.org/plugins/tags/screenshot/)[tool](https://cn.wordpress.org/plugins/tags/tool/)
   [website screenshot](https://cn.wordpress.org/plugins/tags/website-screenshot/)
 *  [高级视图](https://cn.wordpress.org/plugins/website-screenshots/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/website-screenshots/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/website-screenshots/reviews/)

## 贡献者

 *   [ dirk94 ](https://profiles.wordpress.org/dirk94/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/website-screenshots/)