Instead of using the Options API, you’d be better off using the Transients API, however in either case you’ll be polluting the *_options
table (even if you use transients with expiration times).
I’d possibly recommend using wp-session-manager plugin by EAMann’s which will allow you to use and store $_SESSION
data in a dedicated sessions database table that the plugin creates upon activation (or where it does not exist).
Reading:
Related Posts:
- How to get WordPress Time Zone setting?
- Limit the number of inactive widgets
- Custom plugin: Trying to show saved data on frontend
- Remove/unset options field from backend Settings->General?
- Site Title and Tagline in Theme Options Page
- Editor role cannot save custom theme options
- WordPress customizer: load controls in a custom div
- Site Title and Tagline in Pagelines DMS Options Panel
- Enqueue Javascript Correctly for 3.5
- Passing array in add_option()
- Implement a multi-value input field where the number of entries is not limited
- Select dropdown not showing selected value php
- How do I output a database option that is an array into a get_posts array?
- Delete option value from array using update_option()
- How to get bool with `get_option()` when already registered setting with type `boolean`
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- Settings API – sanitize_callback is not called and it leads to an incorrect behavior
- Store and Work with huge array in WP [closed]
- SQL QUERY – Select a value directly from the database
- Adding Default Settings to Theme My Login plugin
- How to add values to media “whitelist_options” in wp-admin/options.php template?
- Ajax – Call to undefined function get_option()
- Multiple options not staying selected after saving
- Whitelisting items from custom options page
- Options API get_option() and update_option() Not Correctly Updating or Returning
- Setting default category base on theme activation
- Error: options page not found
- How to store options in an array
- how to update and display an option without reloading the page
- Saving plugin settings – ERROR: options page not found
- Security for data obtained from the database
- Pull GetOption() variable into jQuery dynamically created html
- Filtering a Database Query
- Is a series of update_option calls safe, performance wise?
- wp-options keep crashing please help
- WP_OPTIONS table, active_plugins entry [closed]
- Warning: Illegal string offset on theme options page [closed]
- Link blogname and blogdescription to the Options Framework
- retain querystring values when savincustom options in admin
- How to Change CSS Colors from Custom Plugin Settings Page
- Decimal values via get_option() with custom local (decimal point = comma)
- WordPress language switcher doesn’t work
- Get value from db for custom contact form
- Display random image url from list of input values
- Page Options Saving But Not Updating In Backend
- Add a custom WooCommerce settings tab with sections
- Set all WooCommerce Products to Simple, Virtual & Downloadable
- How to make a pagination with dropdown selection?
- No more get_option(‘date_time’) in WordPress 5.5?
- How to update option field in database on clicking the publish button in customizer
- Echo Option Value Based On WordPress User Role
- Use get_option with $emailTo on contact page
- WordPress Setting page can not be saved by html radio
- Save Option on Database
- Integrating CSS Into a WP Function Call [closed]
- Options.php loop won’t show!
- Echo get_option displays as text
- Dynamic Email Handler with ‘header (“Location: …’
- save array of objects with update_option
- WordPress Customizer add_control Dropdown of Pages with Multi Select?
- Delete taxonomy and delete all post related it
- plugin add action hook is not working :
- How to call multiple functions from multiple files into a WordPress page template [closed]
- Theme’s Options Page included with require_once *.php in functions.php not visible anymore
- wp_insert_post: array only. wp_update_post: array|object (?)
- what do I replace get_bloginfo with and where do I find all instances of it?
- Remove dash from blog title wordpress
- Using data sent via AJAX in multiple functions on a WP plugin
- Querying Database with wpdb
- What is the difference in the WP memory limits?
- Limit Taxonomy Output in Conditional Statement
- Problem with AJAX in wordpress plugin
- WordPress archive page showing 404 Error [duplicate]
- wp_redirect only works on main site and not on other sites
- How to remove coupon dropdown feature
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Is it save to use eval for a jQuery callback method coming from the database?
- Division by zero error in image.php
- linking stylesheets and scripts with functions.php
- Jquery window.send_to_editor function
- PHP include statement not working?
- Code Executing Too Late?
- Double jQuery loaded
- PHP: Showing currency sign if input is a number
- Displaying text if post was within 5 hours
- New walker for walker_nav_menu to change inside container data
- load ajax using admin-ajax.php
- Create a WordPress shortcode using PHP [duplicate]
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- What does -> mean in WordPress?
- Add data-id attribute to child page links
- Parsing Menu Items and Blog Posts
- Store post content in a php variable and output them using for loop
- Pagination on Custom Post
- Resize image to specific dimension (X to Y ratio)
- Fixing Memory Leaks in WordPress (HHVM)
- Writing PHP code in pages without issue?
- How to use theme function in post/page?
- Running rmdir function on post save
- Logic on a Gravity Forms redirect [closed]