=== Webmister Variables ===
Contributors: webmisterpro
Tags: variables, shortcode, contacts, wpml, phone
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Keep phones, addresses, links, prices and any other site variables on one admin page and output them anywhere with a shortcode.

== Description ==

Edit a value once - it changes everywhere on the site.

* One admin page: key, description, value. Rows can be reordered by drag and drop.
* Shortcode `[wmvar type="phone"]` works in posts, pages, widgets and page builders.
* PHP function `wmvar( 'phone' )` for themes.
* WPML: a column for every active language. An empty translation falls back to the default value. `lang="en"` forces a language.
* Elementor: dynamic tags "Variable" (text and link, with optional `tel:` or `mailto:`).
* If your theme already registers a `[wm_var]` shortcode, the plugin takes it over and imports its values on first run.

Source code and issues: [GitHub](https://github.com/Webmisterpro/webmister-variables).

== Installation ==

1. Upload the `webmister-variables` folder to `/wp-content/plugins/` or install it from the Plugins screen.
2. Activate the plugin.
3. Open **Variables** in the admin menu and add your variables.

== Frequently Asked Questions ==

= Is HTML allowed in values? =

No. Values are plain text and are escaped on output.

= What happens on uninstall? =

All stored variables are deleted.

== Changelog ==

= 1.2.0 =
* Renamed to Webmister Variables: shortcode `[wmvar]`, function `wmvar()`. Stored data is moved automatically.

= 1.1.0 =
* Description column, WPML languages, Elementor dynamic tags.

= 1.0.0 =
* First release.
