Title: JSM Screenshot Machine Shortcode
Author: JS Morisset
Published: <strong>31 ខែ​ឧសភា, 2013</strong>
Last modified: 25 ខែ​មីនា, 2026

---

ស្វែងរក កម្មវិធីបន្ថែម

![](https://ps.w.org/screenshot-machine-shortcode/assets/banner-772x250.jpg?rev=
3167653)

![](https://ps.w.org/screenshot-machine-shortcode/assets/icon-256x256.jpg?rev=2396825)

# JSM Screenshot Machine Shortcode

 By [JS Morisset](https://profiles.wordpress.org/jsmoriss/)

[Download](https://downloads.wordpress.org/plugin/screenshot-machine-shortcode.3.0.0.zip)

 * [Details](https://km.wordpress.org/plugins/screenshot-machine-shortcode/#description)
 * [Reviews](https://km.wordpress.org/plugins/screenshot-machine-shortcode/#reviews)
 * [Development](https://km.wordpress.org/plugins/screenshot-machine-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/screenshot-machine-shortcode/)

## Description

**Shortcode to include images from [Screenshot Machine](http://screenshotmachine.com/)
in your content.**

#### SSM Shortcode Required Attributes:

 * `key="{customer API key}"`
 * `url="{webpage url}"`

You can find the {customer API key} in your [Screenshot Machine dashboard](https://www.screenshotmachine.com/dashboard.php).

The {webpage url} is the web page URL you want to capture in the screenshot.

#### SSM Shortcode Optional Attributes:

 * `dimension="{width x height}"` (default is 120×90)
 * `device="{desktop|phone|tablet}"` (default is desktop)
 * `format="{jpg|png|gif}"` (default is jpg)
 * `days="{cache expiration}"` (default is 14)
 * `wait="{ms}"` (default is 200)
 * `zoom="{percentage}"` (default is 100)
 * `click="{css selector}"` (example: .button-close)
 * `hide="{css selectors}"` (example: .add-banner1,.add-banner2)
 * `cookies="{semicolon list}"` (example: name1=value1;name2=value2)
 * `language="{locale}"` (example: en-US)
 * `agent="{user agent}"`
 * `select="{css selector}"` (example: table.table:nth-child(3) > tbody:nth-child(
   2) > tr:nth-child(15))
 * `crop="{x,y,width,height}"` (example: 100,0,800,300)
 * `title="{title}"`
 * `link="{yes|no}"` (default is yes)
 * `target="{name}"` (default is _blank)
 * `refresh="{yes|no}"` (default is yes)

#### SSM Shortcode Attribute Details:

The dimension=”{width x height}” attribute examples:

 * `dimension="320x240"` – screenshot size 320×240 pixels.
 * `dimension="800x600"` – screenshot size 800×600 pixels.
 * `dimension="1024x768"` – screenshot size 1024×768 pixels.
 * `dimension="1920x1080"` – screenshot size 1920×1080 pixels.
 * `dimension="1024xfull"` – full page screenshot with width equals to 1024 pixels(
   can be pretty long).

The days=”{cache expiration}” attribute value is a number of days that a screenshot
should be used before a new one is created (default is 14).

The wait=”{ms}” attribute value is a number of milliseconds to wait before capturing
the screenshot (default is 200).

The click=”{css selector}”, hide=”{css selectors}”, and select=”{css selector}” 
attribute values are CSS class and/or id selectors. For example:

 * `click=".button-close"` – click this CSS class container before taking a screenshot.
 * `hide=".add-banner1,.add-banner2"` – hide this CSS class container before taking
   a screenshot.
 * `select="table.table:nth-child(3) > tbody:nth-child(2) > tr:nth-child(15)"` –
   take a screenshot only of this CSS container.

The title=”{title}” attribute value is a text string for the image alt and anchor
title attributes.

The link=”{yes|no}” attribute value will determine if the image is linked to the
web page URL or not.

The target=”{name}” attribute opens the link in that target (default is “_blank”).
An empty string, “_self”, “_top”, “_parent”, or an HTML frame are other possible
values.

The refresh=”{yes|no}” attribute value includes javascript to retry the image every
second until it’s available (for a maximum of 10 seconds).

#### SSM Shortcode Example:

    ```
    [ssm key="abc123" url="https://google.com/" dimension="800x600"]
    ```

## Reviews

![](https://secure.gravatar.com/avatar/b17f7925a299acb11b070557652fe539c997a756d1f4b6b96cd20f0edb158aa5?
s=60&d=retro&r=g)

### 󠀁[cool tech – great support](https://wordpress.org/support/topic/cool-tech-great-support/)󠁿

 [wasanajones](https://profiles.wordpress.org/wasanajones/) 30 ខែ​មេសា, 2020

yep, recommended

![](https://secure.gravatar.com/avatar/b37f8fdac51015b683bbae88de4f4d04aec652003662fa192272649d054976ab?
s=60&d=retro&r=g)

### 󠀁[Works Like A Charm!](https://wordpress.org/support/topic/works-like-a-charm-1518/)󠁿

 [Clayton Chase](https://profiles.wordpress.org/claytonchase/) 29 ខែ​សីហា, 2019

This plugin just works. Thanks for developing!! It would have been so much more 
difficult to achieve what I was trying to do without this plugin. Awesome work!

![](https://secure.gravatar.com/avatar/d2819bce7b4e18e808164fbc2140a1457aa377e4e0c46c6938fc4170364e8187?
s=60&d=retro&r=g)

### 󠀁[Incredibly Easy to Use, So Glad I Found it](https://wordpress.org/support/topic/incredibly-easy-to-use-so-glad-i-found-it/)󠁿

 [benneely](https://profiles.wordpress.org/benneely/) 5 ខែ​មេសា, 2019

I’ve been looking for a great screenshot plugin for some time. The ones that are
on here are commonly blocked by the websites I need a picture of. Couldn’t have 
been easier to get it set up and works flawlessly. Keep up the great work!

 [ Read all 4 reviews ](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/)

## Contributors & Developers

“JSM Screenshot Machine Shortcode” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ JS Morisset ](https://profiles.wordpress.org/jsmoriss/)

[Translate “JSM Screenshot Machine Shortcode” into your language.](https://translate.wordpress.org/projects/wp-plugins/screenshot-machine-shortcode)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/screenshot-machine-shortcode/),
check out the [SVN repository](https://plugins.svn.wordpress.org/screenshot-machine-shortcode/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/screenshot-machine-shortcode/)
by [RSS](https://plugins.trac.wordpress.org/log/screenshot-machine-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

### Version Numbering

Version components: `{major}.{minor}.{bugfix}[-{stage}.{level}]`

 * {major} = Major structural code changes and/or incompatible API changes (ie. 
   breaking changes).
 * {minor} = New functionality was added or improved in a backwards-compatible manner.
 * {bugfix} = Backwards-compatible bug fixes or small improvements.
 * {stage}.{level} = Pre-production release: dev < a (alpha) < b (beta) < rc (release
   candidate).

### Repositories

 * [GitHub](https://jsmoriss.github.io/screenshot-machine-shortcode/)
 * [WordPress.org](https://plugins.trac.wordpress.org/browser/screenshot-machine-shortcode/)

### Changelog / Release Notes

**Version 3.0.0 (2025/01/17)**

 * **New Features**
    - None.
 * **Improvements**
    - Improved shortcode attribute sanitization.
 * **Bugfixes**
    - None.
 * **Developer Notes**
    - None.
 * **Requires At Least**
    - PHP v7.4.33.
    - WordPress v6.0.

**Version 2.3.0 (2021/06/28)**

 * **New Features**
    - None.
 * **Improvements**
    - Updated the API URL from http to https.
 * **Bugfixes**
    - None.
 * **Developer Notes**
    - None.
 * **Requires At Least**
    - PHP v7.4.33.
    - WordPress v5.9.

## មេតា

 *  Version **3.0.0**
 *  Last updated **2 សប្ដាហ៍ មុន**
 *  Active installations **30+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4.33 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/screenshot-machine-shortcode/)
 * Tags
 * [machine](https://km.wordpress.org/plugins/tags/machine/)[screenshot](https://km.wordpress.org/plugins/tags/screenshot/)
   [shortcode](https://km.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://km.wordpress.org/plugins/screenshot-machine-shortcode/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/screenshot-machine-shortcode/reviews/)

## Contributors

 *   [ JS Morisset ](https://profiles.wordpress.org/jsmoriss/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/screenshot-machine-shortcode/)