Store it in wp_options()
using update_option()
and retrieve it with get_option()
:
update_option( 'my_plugin_timestamp', $value );
$value = get_option( 'my_plugin_timestamp' );
Related Posts:
- function deactivate_plugins does not exist
- what’s the meaning of the field wp_capabilities in table wp_usermeta
- Change the_title() of a page dynamically
- Adding more options to the instance of an image. (Attachment Display Settings)
- What is wrong with using add_option with Multisite instead of add_blog_option in a plugin
- Trouble with Transient API when W3TC is activated [closed]
- Using wp_filesystem in Plugins
- WordPress REST API call generates nonce twice on every call
- WordPress Terminology Options Vs. Settings
- How to modify post content before writing to database?
- Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php
- How to trap “Publish” button to check for meta box validation?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- $wp_filesystem returns NULL. What are the dependencies?
- wp_mail not recognizing cc and bcc headers
- How can I call “preview post” from wp_remote_get with authentication?
- Plugin Loading Scripts and Styles on Every Page – Even when not being used
- set_sale_price in WooCommerce [closed]
- Synchronize custom post type tags with WordPress default post type tags
- Adding extra pages to plugin that shouldn’t appear in the sidebar
- jquery document ready function not being called [closed]
- How do I include background images in my stylesheets in a plugin?
- How do I add a filter to wp_list_categories() to make links nofollow?
- Custom plugin icon not showing up
- I’m designing a plugin to create database indexes. Suggestions?
- How to hook into publish post events in wordpress 4.7.5
- What is the best way to embed an JS App in a WordPress Page?
- add_rewrite_rule works in themes function php but when moved into plugin it stops working
- $reverse_top_level works the opposite way according to Codex?
- How to serve different thumbnails/images depending on users browser/platform
- Plugin for Android Marketplace downloads?
- How to export post meta with images in wordpress
- Parse form values before sending to options.php
- My WordPress plugin cannot load my JavaScript file
- Password field is empty when using wp_signon();
- Add Minimum Dimensions Text to Featured Image
- Show error message after exception handled
- How to connect my wordpress plugin to a remote database securely?
- How to create a backend for a custom theme?
- admin_post equivalent for guest user?
- WP Cron being triggered but not working as expected
- Plugin Options Array Set to Undefined
- is pre_get_comments not working?
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- Settings API – format container of setting and setting’s description
- Delete option of a Plugin
- Automating the process of shortcode generation in a plugin – how is it done?
- I am trying to make a page in the admin section similar to the appearance of the Profile page for users
- Proper way to include stylesheet for panels
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- unregister_setting() vs delete_option() for plugin update
- Get thumbnails with array sizes parameter
- Why would someone use function_exists(‘add_action’) in a plugin?
- add_filter img_caption_shortcode not implemented
- How to add Plugin functionality in WordPress Frontend Menus
- in_array function Problem
- Best practice for plugin: always detect admin-ajax call?
- Adding another field to user table
- How to hide page links from theme menu
- Brainstorm – Slow Query from Plugin Need to Speed It Up
- How to share user data across multiple WordPress websites?
- How to add text editor in plugin menu?
- How to properly create table in plugin
- Console errors in 6.0-RC1 Widget screen
- Set the payment processor callbacks to a plugin
- Error code when migrate
- How to control ajax calls without effecting memory of server?
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- WordPress: I wanted to use Add rewrite rule multiple times for multiple CPT in my plugin
- WordPress Query doesn’t return the correct value
- Uncaught Error: Call to undefined function wp_get_current_user() in
- How do I show how many products are remaining from the bought package
- Group By in a Metaquery
- wp_ajax function return the html page
- Adding and handling custom settings tab to fusion element
- Not able to Update database while creating a custom module
- How to load css file after a certain css file
- Shortcode from a plugin not working
- How to get option values without requiring wp-load?
- Problem with baseurl and interaction with plugin
- Why setcookie function redirecting to home page in wordpress?
- Deactivate Other Incompatible Plugin Upon Activation
- Should all roles be allowed CRUD operation on the database?
- Associating special meaning with user id 0
- Filter get_user_by instead of replace function
- Downloading Generated XML File
- Can’t get query string in ajax call
- Pass results of custom query to loop – when writing a plugin
- How to use permalink query to go to specific tabs in posts
- Conditional query tags do not work before the query is run. Before then, they always return false
- Method to retrieve category names and IDs only as an array?
- user can login from single account detail from multiple locations(computer) at the same time [closed]
- WP Cron registers hook without any action (does not call the function)
- Send Webhook when post-status is publish or trash
- Is there a canonical way for a plugin to install a mu-plugin or drop-in?
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Calling get_header() with installed FSE theme
- Reinitiate Gutenburg’s blocks using javascript
- Generating Multiple Divi Pages from Database