Title: Primo Vars
Author: Primo WP
Published: <strong>আগষ্ট 30, 2026</strong>
Last modified: আগষ্ট 30, 2026

---

প্লাগিনৰ সন্ধান কৰক

![](https://ps.w.org/primo-vars/assets/banner-772x250.png?rev=3673130)

![](https://ps.w.org/primo-vars/assets/icon-256x256.png?rev=3673130)

# Primo Vars

 [Primo WP](https://profiles.wordpress.org/zurtri/)-ৰ দ্বাৰা

[ডাউনল’ড কৰক](https://downloads.wordpress.org/plugin/primo-vars.1.0.0.zip)

 * [বিশদ বিৱৰণ](https://as.wordpress.org/plugins/primo-vars/#description)
 * [পৰ্য্যালোচনা](https://as.wordpress.org/plugins/primo-vars/#reviews)
 *  [ইনষ্টলেশ্যন](https://as.wordpress.org/plugins/primo-vars/#installation)
 * [বিকাশ](https://as.wordpress.org/plugins/primo-vars/#developers)

 [সাহায্য](https://wordpress.org/support/plugin/primo-vars/)

## বৰ্ণনা

Contact details have a habit of appearing on a dozen pages. When the phone number
or email changes, you get to find every one of them – a real pain!

Primo Vars fixes that. Define a value once on a single settings screen, give it 
a name, and use its shortcode wherever you need it. Change the value and every page
follows.

Each variable has a **type**, and the type does the fiddly work for you:

 * **Phone**: renders a tappable `tel:` link, while displaying the number exactly
   as you typed it, brackets, spaces, country code and all.
 * **Email**: renders a `mailto:` link with the address obfuscated against scrapers.
 * **Link**: renders an anchor, with an optional custom label.
 * **Address**: a multi-line field that keeps your line breaks.
 * **Multi-line text**: the same, for opening hours, a disclaimer, anything that
   runs to more than one line.
 * **Text**: renders plain text, for anything else.

#### Usage

    ```
    [primo_var key="phone"]
    [primo_var key="email"]
    [primo_var key="facebook" text="Follow us"]
    [primo_var key="phone" raw="1"]

    raw="1" returns the plain value with no link, for when you are building your own markup around it.
    ```

In a theme template:

    ```
    <?php echo primo_vars_get( 'phone' ); ?>
    <?php echo primo_vars_get( 'phone', true ); // raw ?>
    ```

#### In the block editor

Insert the **Primo Var** block, pick a variable from the dropdown, and it
 renders
exactly what the shortcode would. Use the shortcode when you want a value inline
in a sentence, and the block when it stands on its own.

#### Starter variables

A fresh install creates seven empty variables to fill in: phone, email,
 address,
facebook, instagram, linkedin and youtube. Delete the ones you do not want, or add
your own. A YouTube channel is just a Link, the same as any other social profile.

#### For developers

Filter `primo_vars_output` to change what any variable renders, from the
 shortcode,
the block and `primo_vars_get()` alike. It fires for a variable that is defined 
but left empty, which is what the example below relies on; it does not fire for 
a key that is not defined at all, since all three entry points return an empty string
before reaching this filter in that case.

    ```
    add_filter( 'primo_vars_output', function ( $html, $var, $atts ) {
        if ( '' === $html && 'phone' === $var['type'] ) {
            return 'Call the office';
        }
        return $html;
    }, 10, 3 );
    ```

The HTML handed to the filter is already escaped. Anything your callback adds
 is
yours to escape.

#### Phone numbers with extra text

Real phone numbers are messy. `+61 491 570 156 Option 2` and `(08) 8123 1234` both
display exactly as typed, and both produce a correct dial link. The trailing “Option
2” is not dialled.

Where the number cannot be worked out automatically, no link is shown rather than
a wrong one. That covers vanity numbers like `1300 PRIMO`, and two numbers written
in one field such as `(08) 8123 1234 (0412 345 678)`. Fill in the optional **Dial
as** field on that row and it will link exactly as you specify.

## স্ক্ৰীনশ্বট

[⌊The Primo Vars settings screen.⌉⌊The Primo Vars settings screen.⌉[

The Primo Vars settings screen.

[⌊The Primo Var block in the editor.⌉⌊The Primo Var block in the editor.⌉[

The Primo Var block in the editor.

[⌊Contact details rendered on the front end.⌉⌊Contact details rendered on the front
end.⌉[

Contact details rendered on the front end.

## ব্লকবোৰ

এই প্লাগিনটোৱে 1টা ব্লক প্ৰদান কৰে।

 *   Primo Var Output a variable defined under Settings, Primo Vars.

## ইনষ্টলেশ্যন

 1. Upload the plugin to `/wp-content/plugins/` and activate it.
 2. Go to **Settings  Primo Vars**.
 3. Fill in the values for the starter variables, or add your own.

## সঘনাই উত্থাপিত প্ৰশ্ন

### What happens if I use a shortcode for a variable I have not filled in?

Nothing renders. Visitors never see a placeholder or an error message.

### Why was my web address rejected?

A link needs its scheme, so use `https://facebook.com/you` rather than `facebook.
com/you`. The plugin tells you which variable it refused and leaves the old value
in place rather than saving something that would not work.

### Does this work in widgets?

Yes. Widget areas have been block-based since WordPress 5.8, so add the Primo
 Var
block, or a Shortcode block holding `[primo_var]`, to any widget area or site editor
template.

Navigation menu labels are the exception: WordPress does not run shortcodes
 there,
and this plugin deliberately does not add a filter to make it, because broad `do_shortcode()`
filters widen the injection surface for everyone.

### Does it phone home?

No. No external requests, no tracking.

## পৰ্য্যালোচনা

এই প্লাগিনৰ বাবে কোনো পৰ্য্যালোচনা নাই।

## অৱদানকাৰী আৰু বিকাশকাৰীসকল

“Primo Vars” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।

অৱদানকাৰীসকল

 *   [ Primo WP ](https://profiles.wordpress.org/zurtri/)

[আপোনাৰ ভাষাত “Primo Vars” অনুবাদ কৰক।](https://translate.wordpress.org/projects/wp-plugins/primo-vars)

### বিকাশৰ প্ৰতি আগ্ৰহী?

[ক’ড ব্ৰাউজ কৰক](https://plugins.trac.wordpress.org/browser/primo-vars/), [SVN ৰিপজিটৰী](https://plugins.svn.wordpress.org/primo-vars/)
চাওক নাইবা [RSS](https://plugins.trac.wordpress.org/log/primo-vars/?limit=100&mode=stop_on_copy&format=rss)-
দ্বাৰা [বিকাশৰ পঞ্জী](https://plugins.trac.wordpress.org/log/primo-vars/) ছাবস্ক্ৰাইব
কৰক।

## সলনি-পঞ্জী

#### 1.0.0

 * First release.

## মেটা

 *  **1.0.0** সংস্কৰণ
 *  **2 সপ্তাহ আগত** শেষবাৰ আপডে’ট হৈছিল
 *  সক্ৰিয় ইনষ্টলেশ্যন **10টাতকৈ কম**
 *  WordPress-ৰ সংস্কৰণ ** 6.3 বা তাতকৈ ওপৰৰ **
 *  ইমানলৈকে পৰীক্ষা কৰা হৈছে **7.1**
 *  PHP-ৰ সংস্কৰণ ** 7.4 বা তাতকৈ ওপৰৰ **
 *  ভাষা
 * [English (US)](https://wordpress.org/plugins/primo-vars/)
 * [contact details](https://as.wordpress.org/plugins/tags/contact-details/)[email](https://as.wordpress.org/plugins/tags/email/)
   [phone](https://as.wordpress.org/plugins/tags/phone/)[shortcode](https://as.wordpress.org/plugins/tags/shortcode/)
   [variables](https://as.wordpress.org/plugins/tags/variables/)
 *  টেগবোৰ
 *  [উচ্চখাপৰ ভিউ](https://as.wordpress.org/plugins/primo-vars/advanced/)

## ৰে’টিংবোৰ

এতিয়ালৈ কোনো পৰ্য্যালোচনা দাখিল কৰা হোৱা নাই।

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

[সকলো পৰ্য্যালোচনা চাওক](https://wordpress.org/support/plugin/primo-vars/reviews/)

## অৱদানকাৰীসকল

 *   [ Primo WP ](https://profiles.wordpress.org/zurtri/)

## সাহায্য

কিবা ক’বলগীয়া আছে? সহায় লাগে?

 [সাহায্যৰ ফ’ৰাম চাওক](https://wordpress.org/support/plugin/primo-vars/)