WP Manifestindependent plugin directory

vars WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

With vars (a plugin for classicPress) you can define name-value associations from the admin.

★ 1stars
390release downloads
≈40active sites
v2.1.2latest · 1 year ago

Install

Download vars-v2.1.2.zip From the v2.1.2 release on GitHub, Dec 3, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/xxsimoxx/vars/releases/download/v2.1.2/vars-v2.1.2.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

With vars you can define name-value associations from the admin.

Then, in your content you can insert [vars]name[/vars] and get value displayed.

Useful if you have a value (a phone number, number of employees) in several pages that can change, so you can change this once from the admin.

It integrates into TinyMCE by adding a menu (compatible also with TinyMCE v.5).

You can choose which users can manage vars.

Look at the screenshots.

Shortcodes everywhere

There is also an option (that affects every shortcode in your site) to display shortcodes in areas where normally they are not.

  • single_post_title
  • the_title
  • widget_text
  • widget_title
  • bloginfo
  • get_post_metadata

Integration

Security menu

If running ClassicPress 1.1.0 or newer those settings are moved to the Security menu: choose which users can manage vars, what to do with vars when uninstalling and apply shortcodes everywhere

Functions

If you would like to use in your theme/plugin vars_do('name') and get value displayed.

Filters

There is a filter called vars_output

An example to capitalize the output.

function vars_output_upper( $string ) {
    return strtoupper( $string );
}
add_filter( 'vars_output', 'vars_output_upper' );

An example to use it to exec PHP code. Dangerous, don't do it. You have to open and close php tags in your string.

function vars_output_exec_php( $string ) {
    ob_start();
    eval( "?>" . $string ." " );
    $evalContent = ob_get_contents();
    ob_end_clean();
    return $evalContent;
}
add_filter( 'vars_output', 'vars_output_exec_php' );

Screenshots

Editing vars

TinyMCE button

Security settings

Privacy

To help us know the number of active installations of this plugin, we collect and store anonymized data when the plugin check in for updates. The date and unique plugin identifier are stored as plain text and the requesting URL is stored as a non-reversible hashed value. This data is stored for up to 28 days.

Releases

20 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v2.1.2 latest
Dec 3, 2024 1 year ago
vars-v2.1.2.zip
64
Aug 31, 2022 4 years ago
vars-2.1.1.zip
159
Nov 19, 2021 4 years ago
vars-2.1.0.zip
65
Mar 13, 2020 6 years ago
vars.zip
41
Mar 9, 2020 6 years ago
vars.zip
5
Jan 27, 2020 6 years ago
vars.zip
9
Jan 9, 2020 6 years ago
vars.zip
8
Dec 30, 2019 6 years ago
vars.zip
11
Dec 23, 2019 6 years ago
vars.zip
9
Nov 20, 2019 6 years ago
vars.zip
9
Nov 19, 2019 6 years ago
vars.zip
10
Oct 29, 2019 6 years ago
tag only
—
Oct 28, 2019 6 years ago
tag only
—
Oct 13, 2019 7 years ago
tag only
—
Oct 11, 2019 7 years ago
tag only
—
Sep 25, 2019 7 years ago
tag only
—
Sep 23, 2019 7 years ago
tag only
—
Aug 30, 2019 7 years ago
tag only
—
Aug 26, 2019 7 years ago
tag only
—
Aug 26, 2019 7 years ago
tag only
—

Active-site estimate ≈40 comes from the median of recent superseded releases. Method.

A grade

Security

vars 2.1.2 · audited by WP Registry

No security issues found.

Audited release
2.1.2
Findings
none
Worst severity
—
Content hash
9c204e804ff47c06f66e8a59…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.