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
- Blank on static home page?
- Adjust the results quantity for Search Results page pagination
- Audio tags around Mp3 URL in content
- the_author_meta not working
- Configuring WP-CLI on Windows 10
- Assign a picture URL to a page via PHP
- Display user role Name – not slug
- Adding ads code between comments
- How to add custom post meta to default blog post?
- Shortcode content filter?
- Update grandchild repeater field with value per row
- Paypal form integration with wordpress registration form without plugin [closed]
- Uploading files using the Settings API
- fatal error call to undefined function get_header in index.php on line 1
- Plugins not working on AJAX requests
- JQuery calling a Custom PHP function (Works in Dev but not in WordPress)
- height should be set to auto to avoid pixelation in the post thumbnail function
- Can’t access site after making changes to the functions.php [closed]
- Replace Woocommerce “add to cart” to be “Download” button [closed]
- Store post content in a php variable and output them using for loop
- Simple AJAX notification when the new post is added to the database
- How to display a custom product field value of a specific category on a Woo Commerce checkout page?
- How can I use a text and a function php
- Warning: call_user_func() expects parameter 1 to be a valid callback, function
- How to make changes to style.php [closed]
- Modify WooCommerce used to get all orders in dashboard
- WordPress can’t use ZipArchive
- Adding an Anchor Link to a wordpress menu using WPBakery Page Builder
- WordPress loading progess – wp-blog-header.php
- Trying to generate a CSS file in wordpress uploads folder
- What is wrong with this piece of PHP code? This is for an email template. (I am completely new to PHP)
- register_setting not save checkbox
- get_template_part() not working with Advanced Custom Fields plugin
- List all ACF field values across every post on one page
- html to posts, jpg to featured image, zip file contains jpg and html
- views How to load javascript on custom page template?
- Two theme locations for two menus, but only one is showing up
- Contact form field in wordpress menu
- Sort posts by title, sort array by largest number [duplicate]
- How to create shortcode of this PHP code
- Can’t insert into a database wordpress