As Ambitious Amoeba said, just do the check on each page load; it shouldn’t be that expensive.
Otherwise, another possibility to store a single bit of information would be to use browser cookies.
Related Posts:
- How to call a plugin function from index.php
- How to create a flexible abstraction for WP_Query?
- Rewriting every url
- How to add multiple custom URL variables?
- custom XMLRPC method plus authentication of user & WooCommerce order
- permalinks with get variables
- WordPress plugin how to run function when button is clicked
- Passing URL parameters to WordPress pages and pretty url
- Adding callback function for wp_ajax_ has no effect
- Use an empty page to build custom plugin output
- Publish Post After Click On A Link
- How to get the custom page get_permalink?
- How to add meta boxes to the ‘Add new post’ screen?
- Load WooCommerce templates from my plugin folder first
- Remove POST_TYPE from custom post type permalink
- Add Post and Comments menu no longer visible
- Custom url structure for custom template
- Use of global variables within plugin [closed]
- Creating a path in a plugin to call a function
- Add a Custom Permalink option in the Permalink Admin Screen?
- URL rewriting must be activated manually for my plugin
- In woocommerce who is responsible for sending the receipt email?
- How to get the permalink of a page when loading my plugin
- 404 errors after plugin options update and category base change
- Why doesn’t flush_rewrite_rules run on plugin activation?
- How to get variables from fucntion.php to my plugin files
- Can wp_list_comments output into variable?
- Woocommerce custom emails without header and footer
- How do I add a custom sub menu menu under Woo-commerce marketing?
- Auto save permalink setting page with the plugin activation
- How to fix Uninitialized string offset: error on a checkbox in WP Settings API
- How to change custom post type pemalink Hierarcy
- Help With Rewrite_Rules For a Custom Plug-In
- Plugin for Android Marketplace downloads?
- How can I turn a custom wordpress page into a product page?
- rewrite URL based on selected taxonomy for post page
- Modifying Author Link to add Author Meta in URL
- Problem with dinamic add_rewrite_rule()
- Remove custom post type slug from URL and add taxonomy Slug
- Perform internal redirect in WordPress?
- add_rewrite_rule behaving strangely
- custom permalink’s rewrite rule for page id
- How to get the permanent link in a plugin?
- change add to cart button link [closed]
- flush_rewrite_rules() not working with update_option_{$option}
- Show content without a post
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- How to get post image root URL?
- Post URL based on Custom Post Types variables
- How can I programmatically change a MySql variable (foreign_keys_check)?
- Custom Post Type Object – Undefined Variables
- How to create new content type and flushes rewrite rules without visiting the permalinks page?
- Forward an old url rewrite scheme to a new one?
- How to embed a new string in url?
- Make get_permalink() work outside the Loop using filters
- WooCommerce currency converter support [closed]
- Woocommerce – looping product images
- Changing permalink structure breaks link to .php file which generates files dynamically
- wp_insert_post generated mixed permalinks
- How to link to custom “archive like” page with custom permalink rules “dynamically”
- help intercepting save_post through plugin
- Add variables from rewrite rules to query var
- WordPress Frontend Page using Plugin
- Child theme modifications not showing up
- Home page is not loading, where in other pages are displaying on the site
- Create new page in wordpress plugin which doesn’t exist
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- how to create a shortcode from a variable in plugin
- Passing function into add_action always returns the first argument
- Get the current post/page URL with plain permalinks
- Adding body class in author page for custom role
- Changing author slug for a custom role without using plugin
- Author Meta in Author URL Link
- Custom author page for custom role
- Custom role not listed
- WordPress plugin how to run function when button is clicked
- Is it possible to change plugin’s Admin Panel Url?
- Coming soon pages with rest of site in maintenance mode
- Get (eventual) permalink from post within Edit Post in Admin panel
- WordPress permalink setting
- How can I see a varibles value when my plugin runs?
- How to add chunk of php, html, and sql code to variable an append to $content
- WooCommerce custom payment gateway
- Get URL of Post You Are Editing
- How to use permalink query to go to specific tabs in posts
- How to remove a class [closed]
- woocommerce features to add product along with link
- Custom rewrite, url path with parameters to a page
- claim a permalink and all sublinks in plugin
- Help Needed: Issue with Change Permalink on DirectoryPress Listing Pages
- WordPress – Custom permalinks for advanced custom fields (ACF) using post type taxonomy
- How to assign to each output values from foreach loop to a meta_key?
- Custom delete option button in plugin settings
- Is it possible to change a term slug before being saved to the database?
- When to use add_settings_section vs just register_setting?
- How To Change Logout Screen Title
- onclick post title in admin area javascript file not working
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- SQL query for custom taxonomy slugs
- How to slice an array using posts_per_page? [closed]