Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

cookies

How to run code when cookie is added?

How to run code when cookie is added?

Categories woocommerce-offtopic Tags cookies, facebook, woocommerce-offtopic

Display value of the GET parameter in a new URL page

Display value of the GET parameter in a new URL page

Categories plugins Tags cookies, parameter, plugins, redirect

Ajax login fails: script sets cookies, but is_user_logged_in() returns false

Ajax login fails: script sets cookies, but is_user_logged_in() returns false

Categories ajax Tags ajax, cookies, login

How are sites using wordpress hiding wordpress cookies that have “wp” or “wordpress” in the cookie name?

How are sites using wordpress hiding wordpress cookies that have “wp” or “wordpress” in the cookie name?

Categories cookies Tags cookies

Authentication between two different sites using the WordPress login cookie

Authentication between two different sites using the WordPress login cookie

Categories users Tags authentication, cookies, users

Why set cookie from URL parameter doesnt work all the time?

Answering my own post here, it seems that WP Super Cache has a dedicated setting (in Advanced section) to not cache urls that have a GET parameter. Once that is checked, problem seems not to replicate for me anymore. So indeed the root problem is that cached files do not run the php code anymore, … Read more

Categories get-posts Tags cookies, get-posts

When is the wp-settings-[time] cookie generated?

When is the wp-settings-[time] cookie generated?

Categories customization Tags cookies, customization, user-interface

Cookie value changes back to previous value after changing

I didn’t see this happening on your site, but I think you could probably remove the variable declaration in front of setcookie(). I didn’t see result called used any where in this code. Which makes me wonder if the value is being set because since the variable isn’t used. <?php add_filter( ‘init’, ‘aws_set_language_cookie’, 999 ); … Read more

Categories plugins Tags cookies, functions, php, plugin-development, plugins

Setting a Custom Cookie in WordPress only for Logged In Customer/User (non-admin)

There are a few things going on there that need to be tweaked. The code below should do what you need. The setting of the cookie shouldn’t query for is the user logged-in. This can’t be relied upon to return true on a login request. Just rely on the wp_login hook to assure you that … Read more

Categories cookies Tags cookies

How can I get an updated cookie in header.php?

How can I get an updated cookie in header.php?

Categories cookies Tags cookies
Older posts
Newer posts
← Previous Page1 … Page12 Page13 Page14 … Page43 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress