WordPress plugin intelligence profile

Buythis Shortcode

Buythis Shortcode

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version5.6
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 5.2 · PHP 7.2
Directory statusactive
Last directory update13 Aug 20262mo ago
Active installations30Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Buythis Shortcode version 5.6 as active, updated 2mo ago and tested up to WordPress 7.1.

Overview

About this plugin

za is an online store that specializes in machinery sales.

Website

Visit the plugin website for online documentation.

Third party service description

za.

za as a third party service, in order for the plugin to work.

za store.

No personal data is collected during the process.

e. the sku, variant, value, search, format and affiliate shortcode parameters.

No other data of any kind, whatsoever, is used by this plugin, other than the parameters provided by the user to the plugin shortcode.

The only data currently submitted to the third party service via HTTP is the sku parameter, or the search and format parameters, depending on which of those parameters are explicitly provided to the shortcode.

Links to the third party service:

za

za

Data definition

AWS S3 is used to serve cached data when one of the above primary third party service data sources are not available.

Data received by the plugin via HTTP, is cached in the site’s local WordPress database, and deleted again when the plugin is uninstalled.

Third party services’ terms of use and privacy policies:

za/terms

za/privacy

Usage

To use the Buythis Shortcode plugin:

[buythis sku="sku" variant="variant" value="path" affiliate="affiliate_id"]

or

[buythis sku="sku" variant="variant" value="path" affiliate="affiliate_id"][/buythis]

The provided affiliate_id is used to generate revenue for a given affiliate, by using this plugin’s [buythis] shortcode on their WordPress site.

A site-wide default Affiliate ID can be configured on the Buythis Shortcode settings page, that will be used as a fallback value for the affiliate parameter, should one not be provided. This makes it easy to change the affiliate ID for a site, and prevents the need to duplicate and maintain the affiliate parameter in each usage of the shortcode.

Depending on the path specified in the value parameter, one or more API calls will be made to the following endpoints (sources), where [sku] is the provided sku parameter:

>

Source

Endpoint URL

Example value parameter

data

json

full

display

json

content

price

json

sale

other

Dynamic fixed data

affiliate

The API response from a source is JSON-decoded, and the path specified by the value parameter is extracted from the JSON response.

Thus, to extract custom JSON data from a source’s API response, use a custom path in the value parameter to specify (describe) the source API and the JSON data to extract from it, as shown in each example value parameter above.

Product listing usage

[buythis search="RDWorks_Upgrade" format="cart"]

[buythis search="sku1, sku2, sku3" format="list"]

variant sku3" format="table1"]

variant, or sku3, will be displayed in the generated table.

Generated listing table format definitions:

>

Table format

Generated table column headers

cart

Select, Image, SKU (and Name), Price, Quantity

list

Image, Description, Price (incl), Buy

table1

), Buy

Usage with WordPress Ajax

To render [buythis sku="sku" variant="variant" value="price" search="search" format="format" affiliate="affiliate_id"][/buythis] dynamically using jQuery:

>

>

jQuery.post(
‘/wp-admin/admin-ajax.php’,
{
action: ‘buythis_shortcode_ajax’,
_ajax_nonce: ”,
sku: ‘sku’,
variant: ‘variant’,
value: ‘price’,
search: ‘search’,
format: ‘format’,
affiliate: ‘affiliate_id’
},
data => data && jQuery( ‘#buythis_plugin_content’ ).html( data )
);

>

Shortcuts

The following shortcut value options are available:

>

| Shortcut | Substituted path ( value parameter) |

|—————–|———————————————————————————————————-|

variant) |

content |

affiliate) |

simple)</a> |

simple |

regular) |

sale) |

regular) |

Syntax

In order of precedence:

  • () (round braces) is used to treat a path as a format string, by only evaluating sub-paths in the format string that are contained within round braces, and leaving text in the rest of the format string that are outside round braces, intact. Nested braces, i.e. braces inside braces, are not supported, i.e. a sub-path cannot contain a format string. Round braces can contain shortcuts as sub-paths.
  • | (OR) is to coalesce the first non-null result of a sub-path out of a set of path expressions. A sub-path can be a shortcut, but cannot contain round braces.

-. (period) is the JSON separator in a path.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • buythis
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 5.2 · PHP 7.2
Update activity13 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.