Title: Cookie Bricks
Author: Vincent Di Raimondo
Published: <strong>1 ມັງກອນ 2025</strong>
Last modified: 6 ມັງກອນ 2025

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/cookie-bricks/assets/banner-772x250.png?rev=3215730)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/cookie-bricks/assets/icon-256x256.png?rev=3215730)

# Cookie Bricks

 ໂດຍ [Vincent Di Raimondo](https://profiles.wordpress.org/partenaireduweb/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/cookie-bricks.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/cookie-bricks/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/cookie-bricks/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/cookie-bricks/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/cookie-bricks/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/cookie-bricks/)

## ຄຳອະທິບາຍ

Cookie Bricks allows you to create dynamic tags in Bricks Builder that fetch cookie
values.
 Perfect for personalization based on user behavior or preferences stored
in cookies.

## ພາບໜ້າຈໍ

[⌊Example of how to insert a cookie value into a text field.⌉⌊Example of how to 
insert a cookie value into a text field.⌉[

Example of how to insert a cookie value into a text field.

[⌊Example of conditional display based on cookie value.⌉⌊Example of conditional 
display based on cookie value.⌉[

Example of conditional display based on cookie value.

[⌊Example of a dynamic URL created with a cookie value.⌉⌊Example of a dynamic URL
created with a cookie value.⌉[

Example of a dynamic URL created with a cookie value.

[⌊Example of how to insert a cookie value into a code block.⌉⌊Example of how to 
insert a cookie value into a code block.⌉[

Example of how to insert a cookie value into a code block.

## ການຕິດຕັ້ງ

 1. Upload the `cookie-bricks.zip` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Use the dynamic tag `{get_cookie_value:cookie_name}` in Bricks Builder.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### How do I use the plugin?

Simply use the dynamic tag `{get_cookie_value:cookie_name}` in Bricks Builder, replacing`
cookie_name` with the key of your desired cookie.

You can insert it in any field that supports dynamic tags, such as Heading, Text
elements (basic, rich and variants), conditions, custom URLs, code blocks, etc.

For example, to obtain the value of a cookie named `"liked_posts"`, write `{get_cookie_value:
liked_posts}`.

### Why not simply use values in custom fields (ACF, Metabox…) ?

Custom fields are very useful for storing manually entered values. But sometimes
you need to use values that are dynamically generated according to user behavior,
automatically calculated, or retrieved from other sources. This is where cookies
come in.

Examples of use :
 Recently consulted articles or products, date of last visit, 
time spent on a page, last page visited, filter parameters applied to a search, 
last step completed in a form, last button clicked, choice of theme (dark/light),
and many others.

For each of these situations, it’s possible to use the value directly in a text 
field, or to use it for conditional display (e.g. for A/B testing).

### What happens if the cookie doesn’t exist?

The tag will return “Cookie not found” by default.

### How do I check the value of a cookie?

On your page, open the browser console with F12 (or CTRL+SHIFT+I), go to the “Applications”
tab –> “Cookies” –> yourwebsite.com

⚠️ Currently, Cookie Bricks 1.0 can read the value of a cookie, but cannot create
it. Make sure that the cookies you want to retrieve exist in the browser.

## ການຣີວິວ

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

### 󠀁[I can’t believe this isn’t a standard feature](https://wordpress.org/support/topic/i-cant-believe-this-isnt-a-standard-feature/)󠁿

 [bpetruzzo](https://profiles.wordpress.org/bpetruzzo/) 7 ກໍລະກົດ 2025 1 ການຕອບກັບ

This plugin appears to work exactly as it says it does. It's tiny. Barely 100 lines
of code. Thank goodness, it *only* exposes cookies as an option for element conditions.
You are responsible for creating the cookies via some other mechanism. THANK YOU
for making this plugin, it's precisely what I needed and appears to works exactly
as I hoped it would. Given how tiny and lightweight this is, I'm really surprised
that it's not just built in Bricks by default.

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

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-9526/)󠁿

 [jodamo5](https://profiles.wordpress.org/jodamo5/) 1 ມີນາ 2025 1 ການຕອບກັບ

Thanks for making this useful plugin. Works perfectly. I have used it in Bricks 
element conditions, to show and hide content based on whether the cookie is there
or not. Your plugin made that super easy to do. Thanks!

 [ ອ່ານການຣີວິວທັງໝົດ 2 ລາຍການ ](https://wordpress.org/support/plugin/cookie-bricks/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Cookie Bricks” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການ
ພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Vincent Di Raimondo ](https://profiles.wordpress.org/partenaireduweb/)

[ແປ “Cookie Bricks” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/cookie-bricks)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/cookie-bricks/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/cookie-bricks/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/cookie-bricks/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/cookie-bricks/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

See changelog.txt for details.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.0**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **2 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **30+**
 *  ເວີຊັນ WordPress ** 5.6 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **6.7.7**
 *  ເວີຊັນ PHP ** 7.4 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/cookie-bricks/)
 * ແທັກ
 * [bricks](https://lo.wordpress.org/plugins/tags/bricks/)[cookies](https://lo.wordpress.org/plugins/tags/cookies/)
   [dynamic tags](https://lo.wordpress.org/plugins/tags/dynamic-tags/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/cookie-bricks/advanced/)

## ການໃຫ້ຄະແນນ

 5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 2 ລາຍການ     ](https://wordpress.org/support/plugin/cookie-bricks/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/cookie-bricks/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/cookie-bricks/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/cookie-bricks/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/cookie-bricks/reviews/?filter=1)

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/cookie-bricks/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/cookie-bricks/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Vincent Di Raimondo ](https://profiles.wordpress.org/partenaireduweb/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/cookie-bricks/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](https://www.partenaireduweb.fr/)